/* TonSurge — Genesis Pass showcase and Genesis 95 bento.
   Sections 1–2: the supplied component styles, verbatim (MagicBento's demo-visual styles omitted).
   Section 3: TonSurge layout and Genesis content. Generated by tools/build-showcase.py. */

/* ===== 1. CircularCarousel (React Bits) ===== */
.circular-carousel {
  --cc-fade: #000000;
  --cc-radius: 12px;
  --cc-inner: 0.4;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.circular-carousel[data-axis='x'] {
  touch-action: pan-x;
}

.circular-carousel[data-draggable] {
  cursor: grab;
}

.circular-carousel[data-dragging] {
  cursor: grabbing;
}

.circular-carousel:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(128, 128, 140, 0.55);
}

.circular-carousel__view {
  position: absolute;
  inset: 0;
}

.circular-carousel[data-shape='wheel'] .circular-carousel__view {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000000 18%, #000000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000000 18%, #000000 82%, transparent);
}

.circular-carousel[data-shape='panorama'] .circular-carousel__view {
  -webkit-mask-image: linear-gradient(to right, transparent, #000000 12%, #000000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000000 12%, #000000 88%, transparent);
}

.circular-carousel__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.circular-carousel[data-ready] .circular-carousel__stage {
  opacity: 1;
}

.circular-carousel__camera,
.circular-carousel__ring,
.circular-carousel__card {
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.circular-carousel__camera {
  position: relative;
}

.circular-carousel__ring,
.circular-carousel__card {
  position: absolute;
  left: 0;
  top: 0;
}

.circular-carousel__tile {
  position: absolute;
  outline: 1px solid transparent;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.circular-carousel__frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
}

.circular-carousel__photo {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.circular-carousel__photo--leaving {
  animation: circular-carousel-leave 700ms cubic-bezier(0.33, 1, 0.68, 1) both;
}

.circular-carousel__shade,
.circular-carousel__inner {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.circular-carousel__shade {
  background: var(--cc-fade);
  opacity: var(--cc-depth, 0);
}

.circular-carousel__inner {
  background: #000000;
  opacity: var(--cc-inner);
}

.circular-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  color: inherit;
  text-align: center;
  pointer-events: none;
  animation: circular-carousel-reveal 900ms ease both;
}

.circular-carousel__title {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  animation: circular-carousel-title 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.circular-carousel__subtitle {
  font-weight: 400;
  opacity: 0.6;
}

.circular-carousel__count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 0.5;
}

.circular-carousel__slash {
  opacity: 0.6;
}

.circular-carousel__digits {
  display: inline-flex;
}

.circular-carousel__digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.circular-carousel__reel {
  display: flex;
  flex-direction: column;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.circular-carousel__reel > span {
  height: 1em;
}

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

@keyframes circular-carousel-title {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes circular-carousel-leave {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes circular-carousel-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .circular-carousel__stage,
  .circular-carousel__reel {
    transition: none;
  }

  .circular-carousel__caption,
  .circular-carousel__title {
    animation: none;
  }
}

/* ===== 2. MagicBento (React Bits) ===== */
.magic-bento {
  --mb-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-auto-flow: row dense;
  width: 100%;
  color: var(--mb-ink);
  font-feature-settings: 'tnum' 0;
  -webkit-tap-highlight-color: transparent;
}

@supports (transition-timing-function: linear(0, 1)) {
  .magic-bento {
    --mb-spring: linear(
      0,
      0.0603,
      0.2033,
      0.3821,
      0.5633,
      0.7258,
      0.8584,
      0.9574,
      1.0242,
      1.0634,
      1.0809,
      1.0828,
      1.0747,
      1.0613,
      1.046,
      1.0313,
      1.0186,
      1.0085,
      1.0012,
      0.9965,
      0.994,
      0.9931,
      0.9933,
      0.9941,
      0.9953,
      0.9966,
      0.9978,
      0.9988,
      1
    );
  }
}

.magic-bento__cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  --mb-delay: 0ms;
}

.magic-bento[data-intro] .magic-bento__cell {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.97);
}

.magic-bento[data-intro] .magic-bento__cell[data-state='in'] {
  opacity: 1;
  transform: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1) var(--mb-delay),
    transform 760ms var(--mb-spring) var(--mb-delay);
}

.magic-bento__card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--mb-radius);
  background: var(--mb-surface);
  box-shadow: var(--mb-shadow);
  color: var(--mb-ink);
  text-decoration: none;
  isolation: isolate;
  outline: none;
  transform: perspective(900px) translate3d(var(--mb-tx, 0px), var(--mb-ty, 0px), 0) rotateX(var(--mb-rx, 0deg))
    rotateY(var(--mb-ry, 0deg)) scale(var(--mb-press, 1));
  user-select: none;
  -webkit-user-select: none;
}

.magic-bento__card[data-clickable] {
  cursor: pointer;
}

.magic-bento__card:focus-visible {
  box-shadow:
    var(--mb-shadow),
    0 0 0 2px var(--mb-focus);
}

.magic-bento__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.magic-bento__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to top,
    rgba(10, 9, 13, 0.82) 0%,
    rgba(10, 9, 13, 0.7) 14%,
    rgba(10, 9, 13, 0.46) 30%,
    rgba(10, 9, 13, 0.2) 46%,
    rgba(10, 9, 13, 0.05) 60%,
    rgba(10, 9, 13, 0) 72%
  );
  pointer-events: none;
}

.magic-bento__light {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    var(--mb-spot-size) circle at var(--mb-x, -999px) var(--mb-y, -999px),
    rgba(var(--mb-glow-rgb), calc(var(--mb-spot-alpha) * var(--mb-hot, 0) * 1)) 0%,
    rgba(var(--mb-glow-rgb), calc(var(--mb-spot-alpha) * var(--mb-hot, 0) * 0.973)) 15%,
    rgba(var(--mb-glow-rgb), calc(var(--mb-spot-alpha) * var(--mb-hot, 0) * 0.837)) 30%,
    rgba(var(--mb-glow-rgb), calc(var(--mb-spot-alpha) * var(--mb-hot, 0) * 0.593)) 45%,
    rgba(var(--mb-glow-rgb), calc(var(--mb-spot-alpha) * var(--mb-hot, 0) * 0.317)) 60%,
    rgba(var(--mb-glow-rgb), calc(var(--mb-spot-alpha) * var(--mb-hot, 0) * 0.104)) 75%,
    rgba(var(--mb-glow-rgb), calc(var(--mb-spot-alpha) * var(--mb-hot, 0) * 0.009)) 90%,
    rgba(var(--mb-glow-rgb), 0) 100%
  );
  pointer-events: none;
}

.magic-bento__stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.magic-bento__rim {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--mb-edge),
    inset 0 1px 0 var(--mb-highlight);
  pointer-events: none;
}

.magic-bento__border {
  position: absolute;
  inset: 0;
  z-index: 4;
  box-sizing: border-box;
  padding: 1px;
  border-radius: inherit;
  background:
    radial-gradient(
      var(--mb-border-size) circle at var(--mb-x, -999px) var(--mb-y, -999px),
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-near, 0) * 1)) 0%,
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-near, 0) * 0.973)) 15%,
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-near, 0) * 0.837)) 30%,
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-near, 0) * 0.593)) 45%,
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-near, 0) * 0.317)) 60%,
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-near, 0) * 0.104)) 75%,
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-near, 0) * 0.009)) 90%,
      rgba(var(--mb-glow-rgb), 0) 100%
    ),
    radial-gradient(
      circle at var(--mb-wx, -999px) var(--mb-wy, -999px),
      rgba(var(--mb-glow-rgb), 0) calc(var(--mb-wr, 0px) - 110px),
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-wa, 0) * 0.1)) calc(var(--mb-wr, 0px) - 80px),
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-wa, 0) * 0.32)) calc(var(--mb-wr, 0px) - 52px),
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-wa, 0) * 0.68)) calc(var(--mb-wr, 0px) - 28px),
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-wa, 0) * 0.94)) calc(var(--mb-wr, 0px) - 10px),
      rgba(var(--mb-glow-rgb), calc(var(--mb-glow-alpha) * var(--mb-wa, 0))) calc(var(--mb-wr, 0px) - 3px),
      rgba(var(--mb-glow-rgb), 0) var(--mb-wr, 0px)
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
}

.magic-bento__content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: var(--mb-pad);
}

.magic-bento__header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--mb-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.magic-bento__icon {
  display: grid;
  width: 16px;
  height: 16px;
  flex: none;
  place-items: center;
  color: var(--mb-ink);
}

.magic-bento__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.magic-bento__visual {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  container-type: size;
}

.magic-bento__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.magic-bento__title {
  margin: 0;
  color: var(--mb-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 20px;
}

.magic-bento__description {
  margin: 0;
  color: var(--mb-muted);
  font-size: 13px;
  line-height: 1.45;
}

.magic-bento[data-autohide] .magic-bento__title,
.magic-bento[data-autohide] .magic-bento__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.magic-bento[data-autohide] .magic-bento__title {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.magic-bento[data-autohide] .magic-bento__description {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.magic-bento__card[data-image] .magic-bento__header,
.magic-bento__card[data-image] .magic-bento__description {
  color: rgba(244, 244, 245, 0.72);
}

.magic-bento__card[data-image] .magic-bento__title,
.magic-bento__card[data-image] .magic-bento__icon {
  color: #f4f4f5;
}

.magic-bento__well {
  position: relative;
  box-sizing: border-box;
  border-radius: var(--mb-inner-radius);
  background: var(--mb-well);
  box-shadow: inset 0 0 0 1px var(--mb-well-edge);
}

.magic-bento__tile {
  position: relative;
  box-sizing: border-box;
  border-radius: var(--mb-inner-radius);
  background: var(--mb-tile);
  box-shadow: var(--mb-tile-shadow);
}

.magic-bento__tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--mb-tile-edge),
    inset 0 1px 0 var(--mb-tile-highlight);
  pointer-events: none;
}

@keyframes magic-bento-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes magic-bento-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes magic-bento-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes magic-bento-pop {
  from {
    opacity: 0;
    scale: 0.6;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* ===== 3. TonSurge: Genesis Pass showcase ===== */
.passes { position: relative; margin-top: 36px; }
.passes-ring { display: none; }
.pass-info { display: none; }
.passes[data-mounted] .passes-ring { display: block; }
.passes[data-mounted] .pass-info { display: grid; }
.passes[data-mounted] .passes-fallback { display: none; }

/* the ring spans the full viewport width so the drum can breathe; body already clips overflow-x */
.passes-ring.circular-carousel {
  width: auto; height: 272px; margin-inline: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.passes-ring.circular-carousel:focus-visible { box-shadow: none; }
.passes-ring.circular-carousel:focus-visible .circular-carousel__view { outline: 2px solid var(--blue-2); outline-offset: -6px; border-radius: 24px; }
/* art has transparent rounded corners: keep the frame clear so the corners stay clean */
.passes-ring .circular-carousel__frame { background: transparent; }

.pass-info { justify-items: center; gap: 0; margin-top: 6px; text-align: center; }
.pass-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--t46); }
.pass-id {
  margin-top: 8px; font-size: 26px; font-weight: 500; line-height: 1.1; letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums; background: var(--silver-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pass-sub { margin-top: 6px; font-size: 13.5px; color: var(--t60); }
.pass-note { max-width: 300px; margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--t46); }
.pass-nav { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.pass-arrow {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--s2); color: var(--t80);
}
.pass-arrow:hover { background: var(--s3); color: #fff; }
.pass-arrow svg { width: 16px; height: 16px; }
.pass-count { display: inline-flex; align-items: center; gap: 5px; min-width: 64px; justify-content: center; font-size: 13px; color: var(--t60); font-variant-numeric: tabular-nums; line-height: 1; }
.pass-count .circular-carousel__digits { color: #fff; }
.pass-slash { color: var(--t30); }

.pass-find { display: grid; justify-items: center; gap: 8px; width: 100%; max-width: 280px; margin-top: 18px; }
.pass-find label { font-size: 12px; color: var(--t50); }
.pass-find-field {
  display: flex; align-items: center; width: 100%; height: 42px; padding: 0 4px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--s1); transition: border-color 0.2s ease;
}
.pass-find-field:focus-within { border-color: rgba(89, 200, 255, 0.45); }
.pass-find-field > span { color: var(--t40); font-size: 14px; }
.pass-find-field input {
  flex: 1; min-width: 0; height: 100%; padding: 0 6px; border: 0; background: transparent; outline: none; font-size: 15px;
  font-variant-numeric: tabular-nums; color: #fff;
}
.pass-find-field input::placeholder { color: var(--t30); }
.pass-go { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--s3); color: var(--t80); }
.pass-go:hover { background: var(--s4); color: #fff; }
.pass-go svg { width: 15px; height: 15px; }
.pass-found { min-height: 17px; font-size: 12.5px; color: var(--t60); font-variant-numeric: tabular-nums; }

/* static fallback (no JavaScript / no 3D): the existing horizontal pass row */
.passes-fallback { margin-top: 0; }

@media (min-width: 520px) {
  .passes-ring.circular-carousel { height: 350px; }
  .pass-id { font-size: 30px; }
}
@media (min-width: 768px) {
  .passes { margin-top: 44px; }
  .passes-ring.circular-carousel { height: 430px; }
  .pass-info { margin-top: -6px; }
}
@media (min-width: 1024px) {
  .passes-ring.circular-carousel { height: 480px; }
  .pass-info { margin-top: -18px; }
}

/* ===== 3b. TonSurge: How it works — Genesis 95 bento ===== */
.how-sub { max-width: 340px; margin-inline: auto; }
.g95-bento { max-width: 980px; margin: 30px auto 0; font-family: var(--font); }
/* before the engine mounts (or without JavaScript): a plain, readable stack */
.g95-bento:not(.is-mounted) { display: grid; gap: 12px; }
.g95-bento:not(.is-mounted) .gb-body {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; background: #0b0b0c; border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .g95-bento:not(.is-mounted) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Round 3: the bento uses the site's own card look — flat matte surfaces, 1px hairlines,
   medium-weight type, no coloured numbering. */
.g95-bento .magic-bento__content { gap: 14px; }
.g95-bento .magic-bento__header { gap: 8px; color: var(--t46); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 16px; }
.g95-bento .magic-bento__label::first-letter { text-transform: uppercase; }
.g95-bento .magic-bento__title { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.g95-bento .magic-bento__description { font-size: 13px; line-height: 1.55; color: var(--t50); }
.g95-bento .magic-bento__text { gap: 6px; }
/* visuals size to their content (the demo's size-container would collapse them in auto rows) */
.g95-bento .magic-bento__visual { flex: 1 0 auto; justify-content: center; container-type: inline-size; }
.gb-body .magic-bento__visual { display: flex; flex-direction: column; }
.g95-bento .magic-bento__tile, .g95-bento .magic-bento__well { background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.g95-bento .magic-bento__tile::after { display: none; }

/* supporting facts: the same outline pills as the start page tags */
.gb-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gb-facts li {
  height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line);
  font-size: 12px; color: var(--t70); white-space: nowrap;
}
.gb-facts b { font-weight: 400; color: var(--t70); font-variant-numeric: tabular-nums; }
.gb-fine { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--t40); }

/* 01 — 95 identities, #06 to #100 (compact) */
.gb-ident { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; }
.gb-ident-num {
  font-size: 64px; font-weight: 500; line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
  background: var(--silver-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gb-ident-range { display: grid; gap: 8px; min-width: 0; }
.gb-ruler { display: flex; align-items: flex-end; justify-content: space-between; height: 26px; }
.gb-ruler i { width: 1px; height: 12px; border-radius: 1px; background: rgba(255, 255, 255, 0.18); }
.gb-ruler i[data-major] { height: 22px; background: rgba(255, 255, 255, 0.5); }
.gb-ruler i:first-child, .gb-ruler i:last-child { width: 2px; height: 26px; background: #fff; }
.gb-ruler-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--t50); font-variant-numeric: tabular-nums; }
.magic-bento[data-motion] .gb-ruler i { animation: gb-tick 520ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--mb-delay) + 160ms) both paused; transform-origin: 50% 100%; }
.magic-bento[data-motion] .magic-bento__cell[data-state='in'] .gb-ruler i { animation-play-state: running; }
@keyframes gb-tick { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* 02 — auction: one lot + starting-bid tiers, aggregate shown separately */
.gb-auction { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 10px; align-items: stretch; }
.gb-lot { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px 13px; border-radius: 14px; }
.gb-lot-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gb-lot-id { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.gb-lead { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 10.5px; color: var(--t70); white-space: nowrap; }
.gb-lead::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.gb-lot dl { display: grid; gap: 6px; margin: 0; }
.gb-lot dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.gb-lot dt { color: var(--t50); }
.gb-lot dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gb-tiers { display: grid; gap: 7px; margin: 0; padding: 11px 12px; list-style: none; border-radius: 14px; }
.gb-tiers li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.gb-tiers span:first-child { color: var(--t50); white-space: nowrap; }
.gb-tiers i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); transform-origin: 0 50%; width: calc(var(--w) * 100%); }
.gb-tiers li:first-child i { background: rgba(255, 255, 255, 0.55); }
.gb-tiers b { font-weight: 400; color: #fff; white-space: nowrap; }
.magic-bento[data-motion] .gb-tiers i { animation: gb-bar 700ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--mb-delay) + 220ms + var(--i) * 60ms) both paused; }
.magic-bento[data-motion] .magic-bento__cell[data-state='in'] .gb-tiers i { animation-play-state: running; }
@keyframes gb-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gb-total {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line);
}
.gb-total b { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: #fff; }
.gb-total span { font-size: 12px; color: var(--t50); }

/* 03 — membership record */
.gb-record { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px; border-radius: 14px; }
.gb-record img { width: 28px; height: auto; }
.gb-record b { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.gb-record small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--t50); }
.gb-record p { grid-column: 1 / -1; display: flex; justify-content: space-between; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--t40); }

/* 04 — early-access window on one axis that ends at launch (only the two published endpoints) */
.gb-axis { gap: 10px; }
.gb-axis-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--t50); font-variant-numeric: tabular-nums; }
.gb-axis-row--time b { font-weight: 500; color: #fff; }
.gb-axis-track { position: relative; height: 18px; }
.gb-axis-track i { position: absolute; left: 7px; right: 2px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: linear-gradient(90deg, #30a1f5 0%, rgba(48, 161, 245, 0.35) 70%, rgba(255, 255, 255, 0.25) 100%); transform-origin: 0 50%; }
.gb-axis-track em { position: absolute; right: 0; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.6); }
.gb-pin { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #0b0b0c; box-shadow: inset 0 0 0 2px #30a1f5; }
.gb-pin--a { left: 0; background: #30a1f5; box-shadow: 0 0 0 4px rgba(48, 161, 245, 0.16); }
.gb-pin--b { right: 9px; }
.magic-bento[data-motion] .gb-axis-track i { animation: gb-bar 900ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--mb-delay) + 220ms) both paused; }
.magic-bento[data-motion] .magic-bento__cell[data-state='in'] .gb-axis-track i { animation-play-state: running; }

/* 05 — the three ways members connect */
.gb-channels { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 0; margin: 0; padding: 0; list-style: none; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.gb-channels li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; }
.gb-channels li + li { border-top: 1px solid var(--line); }
.gb-ch-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--s3); color: var(--t80); }
.gb-ch-ic svg { width: 17px; height: 17px; }
.gb-channels b { display: block; font-size: 13px; font-weight: 500; }
.gb-channels small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--t50); }

/* 06 — STRIKE: one position row, marked as part of a Genesis ID */
.magic-bento__visual.gb-ticket { flex: 0 0 auto; margin: auto 0; }
.gb-ticket { flex-direction: row !important; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.gb-ticket-main { flex: 1 1 auto; min-width: 0; }
.gb-ticket-main b { display: block; font-size: 13.5px; font-weight: 500; letter-spacing: 0.02em; }
.gb-ticket-main small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--t50); }
.gb-marker { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 11.5px; color: var(--t70); white-space: nowrap; flex: none; }
.gb-marker img { width: 13px; height: auto; }


/* one column: keep cards compact */
.g95-bento[data-cols='1'] .magic-bento__content { gap: 12px; }
.g95-bento[data-cols='1'] .gb-auction { grid-template-columns: minmax(0, 1fr); }
@container (max-width: 300px) {
  .gb-tiers li { grid-template-columns: 54px minmax(0, 1fr) auto; }
}

/* Genesis Fund — secondary strip */
.fund {
  max-width: 980px; margin: 12px auto 0; padding: 18px; border-radius: 22px;
  background: #0b0b0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.fund-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.fund-head h3 { font-size: 15px; font-weight: 500; }
.fund-head p { font-size: 12px; color: var(--t50); }
.fund-bar { display: flex; gap: 3px; height: 8px; margin-top: 14px; }
.fund-bar i { flex: var(--w) 1 0; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.fund-bar i:nth-child(2) { background: rgba(255, 255, 255, 0.2); }
.fund-bar i:nth-child(3) { background: rgba(255, 255, 255, 0.32); }
.fund-bar i[data-key] { background: linear-gradient(90deg, #0e7eff, #59c8ff); }
.fund-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.fund-legend li { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--t60); }
.fund-legend b { min-width: 30px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.fund-legend li[data-key] { color: #cdeaff; }
.fund-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--t60); }
.fund-note b { font-weight: 500; color: #fff; }

.how-rules { margin-top: 40px; font-size: 20px; font-weight: 500; text-align: center; letter-spacing: -0.015em; }
.how-rules + .how-grid { margin-top: 16px; }

@media (min-width: 768px) {
  .fund { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 28px; align-items: center; padding: 20px 22px; }
  .fund-head { grid-column: 1; grid-row: 1; }
  .fund-bar { grid-column: 1; grid-row: 2; }
  .fund-legend { grid-column: 1; grid-row: 3; }
  .fund-note { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
  .how-rules { margin-top: 52px; font-size: 24px; }
  /* auction rules: three columns so the five cards close evenly (3 + wide 2 + 1) */
  .how-grid { max-width: 980px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; }
}

/* ===== 3c. TonSurge: Specular Button hosts =====
   The edge-light canvas reaches 24px past its button. Near the screen edge (phones) and inside
   scrolling sheets that would add a few pixels of sideways scroll, so those containers clip x. */
.sb-host { position: relative; display: grid; isolation: isolate; min-width: 0; }
.sb-host > button, .sb-host > a { position: relative; z-index: 1; margin: 0; width: 100%; }
.sb-host > .specular-button__light { position: absolute; inset: -24px; z-index: 2; display: block; width: calc(100% + 48px); height: calc(100% + 48px); pointer-events: none; }
.sb-host.sb-btn { margin-top: 14px; }
@media (max-width: 767px) {
  .cta-row { margin-inline: -16px; padding-inline: 16px; overflow-x: clip; }
}
.panel { overflow-x: hidden; }
@media (min-width: 1024px) {
  .fund-legend { grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 18px; }
}
