#asset-experience {
  width: 100%;
  min-width: 0;
}

.dct-panel {
  --dct-paper: #f4f5eb;
  --dct-forest: #213f34;
  --dct-lime: #def5a7;
  --dct-meta: #cbdbbf;
  --dct-rule: #b8d29e42;
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.125rem;
  background: radial-gradient(ellipse at 51% 32%, #3d604b, #284a3a 57%, #243f33 100%);
  color: var(--dct-paper);
  box-shadow: inset 0 0 0 1px #324b3b;
}

.dct-panel button {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
}

.dct-panel button:focus-visible {
  outline: 2px solid var(--dct-lime);
  outline-offset: -5px;
}

.dct-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 4.4rem;
  margin-inline: clamp(1rem, 4.5cqi, 2.2rem);
  border-bottom: 1px solid var(--dct-rule);
}

.dct-toolbar-title { font-size: 1.03rem; font-weight: 500; letter-spacing: -.025em; }
.dct-controls { display: flex; align-items: center; gap: .8rem; }
.dct-sample { color: var(--dct-meta); font-size: .75rem; }
.dct-motion {
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--dct-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--dct-paper);
  display: grid;
  place-items: center;
}

.dct-motion:hover, .dct-stages button:hover { background: #e3f4c312; }
.dct-motion svg { height: 1.1rem; width: 1.1rem; }

.dct-stage-art {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 13rem;
  height: clamp(14rem, 44cqi, 23rem);
  background: radial-gradient(ellipse at 58% 72%, #66865c1a, transparent 73%);
}

.dct-stage-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#dbefc208 1px, transparent 1px), linear-gradient(90deg, #dbefc208 1px, transparent 1px);
  background-size: 2.3rem 2.3rem;
}

.dct-illustration { width: 100%; height: 100%; overflow: visible; }
.dct-illustration text {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
}

.dct-farm, .dct-lot-tag, .dct-flow, .dct-units, .dct-unit-tag, .dct-coins {
  transform-origin: 0 0;
  transition: transform 1.1s cubic-bezier(.19,.78,.21,1), opacity .6s ease;
}

.dct-farm { transform: translate(135px, 10px) scale(1.13); }
.dct-lot-tag { transform: translate(180px, 14px); }
.dct-flow, .dct-units, .dct-unit-tag, .dct-coins { opacity: 0; }
.dct-coins { transform: translateY(12px); }
.dct-outline {
  opacity: 0;
  stroke-dasharray: 1;
}
.dct-panel[data-stage="0"] .dct-outline {
  animation: dct-outline 2.8s ease-in-out both;
}
.dct-panel:not(.dct-running) .dct-outline { animation-play-state: paused; }
@keyframes dct-outline {
  0% { opacity: 0; stroke-dashoffset: 1; }
  12% { opacity: .95; }
  71% { opacity: .95; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}

.dct-kernel { transform-box: fill-box; transform-origin: center; transform: rotate(-16deg); }

.dct-panel:is([data-stage="1"],[data-stage="2"]) .dct-farm { transform: translate(19px, 47px) scale(.82); }
.dct-panel:is([data-stage="1"],[data-stage="2"]) .dct-lot-tag { transform: translate(13px, 0); }
.dct-panel:is([data-stage="1"],[data-stage="2"]) :is(.dct-flow,.dct-unit-tag) { opacity: 1; }
.dct-panel[data-stage="1"] .dct-units { opacity: 1; }
.dct-panel[data-stage="2"] .dct-coins { opacity: 1; transform: translateY(0); }
.dct-panel[data-stage="2"] .dct-last-token { transform: translateY(-14px); transition: transform .55s ease; }
.dct-panel[data-stage="2"].dct-issued .dct-last-token { transform: translateY(0); }
.dct-panel[data-stage="1"] .dct-cell-row {
  animation: dct-unit-in .52s cubic-bezier(.2,.7,.4,1) backwards;
  animation-delay: calc(var(--row) * 110ms);
}
.dct-panel[data-stage="1"] .dct-kernel {
  animation: dct-grain-flight 1.2s ease-in-out 2 both;
}
.dct-panel[data-stage="1"] .dct-kernel-b { animation-delay: .24s; }
.dct-panel:not(.dct-running) .dct-kernel { animation-play-state: paused; }
.dct-panel[data-stage="1"]:not(.dct-running) .dct-cell-row { animation: none; }

@keyframes dct-unit-in {
  from { opacity: 0; transform: translate(-27px, 10px); }
  to { opacity: 1; transform: translate(0, 0); }
}
@keyframes dct-grain-flight {
  0% { opacity: 0; transform: translate(-12px, 3px) rotate(-16deg); }
  16% { opacity: 1; }
  40% { transform: translate(27px, 3px) rotate(-16deg); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate(101px, -22px) rotate(-26deg); }
}

.dct-info {
  display: grid;
  align-items: center;
  min-height: 9.75rem;
  margin: 0 clamp(1rem, 4.5cqi, 2.2rem);
  padding-block: 1.2rem 1.45rem;
  border-top: 1px solid var(--dct-rule);
}

.dct-panel .dct-scene[hidden] { display: none; }
.dct-panel .dct-meta {
  margin: 0 0 .58rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--dct-meta);
}
.dct-scene h3 {
  margin: 0;
  color: var(--dct-paper);
  font-weight: 500;
  letter-spacing: -.045em;
  font-size: clamp(1.65rem, 5cqi, 2.5rem);
  line-height: 1.08;
}
.dct-scene > p:last-child, .dct-record-detail {
  color: #d0ddc8;
  margin: .65rem 0 0;
  max-width: 38ch;
  font-size: .95rem;
  line-height: 1.5;
}
.dct-register {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem 1.2rem;
  justify-content: space-between;
}
.dct-register > div { min-width: 0; }
.dct-panel .dct-issue {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .72rem 1rem;
  min-height: 2.85rem;
  color: #21392b;
  border: 1px solid transparent;
  border-radius: .4rem;
  background: var(--dct-lime);
  font-weight: 600;
  font-size: .875rem;
  transition: background .2s, color .2s;
}
.dct-panel .dct-issue:focus-visible { outline-color: #3f613d; }
.dct-panel .dct-issue:hover { background: #ebffbe; }
.dct-panel .dct-issue[aria-disabled="true"] {
  color: var(--dct-lime);
  border-color: #d9eeaa61;
  background: #456147;
  cursor: default;
}
.dct-issue svg { width: 1.15rem; height: 1.15rem; }

.dct-stages {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  background: #182e2324;
  border-top: 1px solid var(--dct-rule);
}
.dct-stages button {
  position: relative;
  min-width: 0;
  min-height: 3.6rem;
  border: none;
  border-top: 3px solid transparent;
  background: transparent;
  color: #d0ddc8;
  font-size: .875rem;
  line-height: 1.25;
  transition: background .2s, border-color .2s;
}
.dct-stages button[aria-pressed="true"] {
  color: var(--dct-lime);
  border-top-color: var(--dct-lime);
  background: #aec68512;
}
.dct-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@container (max-width: 510px) {
  .dct-info { min-height: 11.25rem; }
  .dct-register { align-items: flex-start; }
  .dct-stage-art { height: clamp(13rem, 53cqi, 16rem); }
  .dct-illustration text { font-size: 15px; letter-spacing: .5px; }
}
@container (max-width: 360px) {
  .dct-toolbar { min-height: 3.9rem; gap: .35rem; }
  .dct-toolbar-title { font-size: .94rem; }
  .dct-controls { gap: .4rem; }
  .dct-sample { font-size: .7rem; }
  .dct-motion { width: 2.25rem; height: 2.25rem; }
  .dct-stages button { font-size: .82rem; min-height: 3.1rem; }
  .dct-stage-art { height: 11.5rem; min-height: 11.5rem; }
  .dct-info { min-height: 11.6rem; }
  .dct-issue { width: 100%; }
  .dct-farm { transform: translate(112px, -7px) scale(1.32); }
}
@media (prefers-reduced-motion: reduce) {
  .dct-panel *, .dct-panel *::before, .dct-panel *::after {
    animation: none !important;
    transition: none !important;
  }
}
