:root {
  --playground-ink: #f4f5ed;
  --playground-ground: #121511;
  --playground-line: rgba(244, 245, 237, 0.2);
  --playground-acid: #d7ff43;
}

.playground-page {
  min-width: 320px;
  color: var(--playground-ink);
  background: var(--playground-ground);
}

.playground-page .site-main--full {
  padding: 0;
}

.playground-nav {
  color: var(--playground-ink);
  background: rgba(18, 21, 17, 0.84);
  border-bottom: 1px solid var(--playground-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.playground-nav .immersive-primary-nav a {
  color: #aeb5aa;
}

.playground-nav .immersive-primary-nav a[aria-current="page"],
.playground-nav .immersive-primary-nav a:hover {
  color: var(--playground-acid);
}

.playground-page a:focus-visible {
  outline-color: var(--playground-acid);
}

.playground-page-inner {
  width: min(calc(100% - 44px), 1180px);
  margin: 0 auto;
  padding: 72px 0 80px;
}

.playground-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(240px, 0.58fr);
  gap: 60px;
  align-items: end;
  padding: 30px 0 58px;
}

.playground-kicker {
  margin: 0 0 22px;
  color: var(--playground-acid);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.18em;
}

.playground-hero h1 {
  margin: 0;
  color: var(--playground-ink);
  font-size: clamp(76px, 12.5vw, 155px);
  font-weight: 750;
  line-height: 0.74;
  letter-spacing: -0.085em;
}

.playground-hero h1 span {
  display: block;
  margin-left: 0.68em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--playground-ink);
}

.playground-intro {
  margin: 0 0 4px;
  color: #c5cbc0;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 620;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.workbench {
  position: relative;
  padding: 22px;
  overflow: hidden;
  background-color: #191d18;
  background-image: radial-gradient(rgba(244, 245, 237, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid var(--playground-line);
  border-radius: 30px;
  isolation: isolate;
}

.workbench::before {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 0;
  content: "OBJECTS / 04";
  color: rgba(244, 245, 237, 0.38);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.bench-cursor {
  position: absolute;
  z-index: 5;
  width: 100px;
  height: 100px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.bench-cursor::before,
.bench-cursor::after {
  position: absolute;
  content: "";
  background: var(--playground-acid);
}

.bench-cursor::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.bench-cursor::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.bench-cursor span {
  position: absolute;
  top: 54px;
  left: 54px;
  color: var(--playground-acid);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.workbench.is-active .bench-cursor {
  opacity: 0.75;
}

.object-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
}

.play-object {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 22px;
  overflow: hidden;
  color: #111411;
  background: #f4f5ed;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
  transform: translate3d(var(--play-x, 0), var(--play-y, 0), 0) rotate(var(--play-rotate, 0));
  will-change: transform;
}

.play-object:nth-child(1) { grid-column: span 7; background: #d9d0ff; }
.play-object:nth-child(2) { grid-column: span 5; background: #ffc963; }
.play-object:nth-child(3) { grid-column: span 6; background: #c5f0df; }
.play-object:nth-child(4) { grid-column: span 6; background: #ffb7d2; }

.object-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(17, 20, 17, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.object-preview {
  position: relative;
  min-height: 112px;
  margin: 20px 0 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(17, 20, 17, 0.28);
  border-radius: 16px;
}

.object-preview::before {
  position: absolute;
  left: 14px;
  bottom: 8px;
  z-index: 2;
  content: attr(data-kind);
  color: rgba(17, 20, 17, 0.72);
  font-size: clamp(34px, 7vw, 72px);
  font-weight: 820;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.object-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.55;
  transform: scale(1.04);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.play-object:hover .object-preview::after {
  transform: scale(1.17) rotate(2deg);
}

.play-object[data-key="atlas"] .object-preview::after {
  background-image:
    radial-gradient(circle at 18% 25%, #111 0 4px, transparent 5px),
    radial-gradient(circle at 45% 67%, #111 0 5px, transparent 6px),
    radial-gradient(circle at 77% 34%, #111 0 4px, transparent 5px),
    linear-gradient(28deg, transparent 43%, #111 44% 45%, transparent 46%),
    linear-gradient(145deg, transparent 49%, #111 50% 51%, transparent 52%);
}

.play-object[data-key="next-move"] .object-preview::after {
  background-image:
    linear-gradient(90deg, transparent 49.5%, rgba(17, 20, 17, 0.65) 50% 50.5%, transparent 51%),
    radial-gradient(circle at 50% 50%, transparent 0 23px, rgba(17, 20, 17, 0.7) 24px 25px, transparent 26px),
    linear-gradient(rgba(17, 20, 17, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 17, 0.55) 1px, transparent 1px);
  background-size: auto, auto, 100% 28px, 36px 100%;
}

.play-object[data-key="dataproof"] .object-preview::after {
  background-image:
    linear-gradient(rgba(17, 20, 17, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 17, 0.5) 1px, transparent 1px);
  background-size: 100% 22px, 72px 100%;
}

.play-object[data-key="pay-tools"] .object-preview::after {
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(17, 20, 17, 0.26) 23px 24px), linear-gradient(160deg, transparent 35%, rgba(17, 20, 17, 0.6) 36% 38%, transparent 39%);
}

.object-copy {
  margin-top: auto;
}

.object-copy h2 {
  margin: 0 0 10px;
  color: #111411;
  font-size: clamp(29px, 4vw, 48px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.object-copy p {
  margin: 0;
  color: rgba(17, 20, 17, 0.72);
  line-height: 1.5;
}

.object-actions {
  display: flex;
  align-items: center;
  margin-top: 22px;
  border-top: 1px solid rgba(17, 20, 17, 0.25);
}

.object-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  color: #111411;
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 180ms ease, color 180ms ease;
}

.object-action:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #111411;
}

.object-action:focus-visible {
  outline: 2px solid #111411;
  outline-offset: 3px;
}

.object-actions-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 10px;
}

.object-actions-split .object-action {
  min-height: 48px;
  border: 1px solid rgba(17, 20, 17, 0.28);
}

.object-arrow {
  margin-left: auto;
  font-size: 21px;
  transition: transform 180ms ease;
}

.object-action:hover .object-arrow,
.object-action:focus-visible .object-arrow {
  transform: translate(3px, -3px);
}

.playground-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 24px;
  color: #8f978c;
  border-top: 1px solid var(--playground-line);
  font-size: 12px;
}

@media (max-width: 760px) {
  .playground-page-inner {
    width: min(calc(100% - 28px), 1180px);
    padding: 38px 0 64px;
  }

  .playground-hero {
    display: block;
    padding: 22px 0 42px;
  }

  .playground-hero h1 {
    font-size: clamp(66px, 20vw, 100px);
  }

  .playground-intro {
    margin-top: 34px;
  }

  .workbench {
    padding: 11px;
    border-radius: 22px;
  }

  .object-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 25px;
  }

  .play-object,
  .play-object:nth-child(n) {
    grid-column: auto;
    min-height: 300px;
    padding: 18px;
    border-radius: 17px;
    transform: none !important;
    will-change: auto;
  }

  .object-preview {
    min-height: 100px;
    margin-top: 18px;
  }

  .object-actions-split {
    gap: 8px;
  }

  .object-actions-split .object-action {
    padding-inline: 9px;
  }

  .bench-cursor {
    display: none;
  }

  .playground-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-object {
    transform: none !important;
    will-change: auto;
  }

  .bench-cursor {
    display: none;
  }

  .object-preview::after {
    transition: none;
  }

  .object-action,
  .object-arrow {
    transition: none;
  }
}
