:root {
  color-scheme: dark;
  --bg: #080c10;
  --surface: #13191e;
  --line: #313940;
  --text: #f3f6f8;
  --muted: #b0bbc2;
  --lime: #b8f568;
  --ease: cubic-bezier(0.22, 0.7, 0.22, 1);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
summary,
select,
textarea {
  touch-action: manipulation;
}
button,
.primary,
.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 19px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: white;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 0.18s,
    background 0.18s,
    border-color 0.18s;
}
button:hover,
.outline:hover {
  border-color: var(--lime);
}
button:active,
.primary:active {
  transform: scale(0.97);
}
.primary,
button[data-op='open'] {
  color: #112300;
  background: var(--lime);
  border-color: var(--lime);
}
a:hover,
.more {
  color: var(--lime);
}
.primary:hover {
  background: #d0ff94;
  color: #112300;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -8rem;
  z-index: 100;
  background: white;
  color: black;
  padding: 12px;
}
.skip:focus {
  top: 1rem;
}
:focus-visible {
  outline: 3px solid #77dfff;
  outline-offset: 4px;
}
header {
  border-bottom: 1px solid var(--line);
  background: #090d10;
}
.bar,
main,
footer {
  width: min(1380px, 94%);
  margin: auto;
}
.bar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo,
.foot-logo {
  font-size: clamp(21px, 2.5vw, 30px);
  letter-spacing: -1.4px;
  font-weight: 850;
  font-style: italic;
}
.logo em,
.foot-logo em {
  color: var(--lime);
}
nav,
.tools,
.actions,
.tabs,
.filters,
.preferences {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.desktop {
  gap: clamp(15px, 3vw, 40px);
  font-size: 0.92rem;
  font-weight: 600;
}
.bar .outline {
  min-height: 38px;
}
.mobile {
  display: none;
}
main {
  min-height: 62vh;
}
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(430px, 39vw, 605px);
  overflow: hidden;
  background: #08090b;
}
.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 49%;
  z-index: -2;
}
.hero:after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #080c10 0%, #080c10df 18%, #080c1099 38%, transparent 62%);
  z-index: -1;
}
.hero-copy {
  width: min(560px, 51%);
  padding: 32px 2% 32px 1%;
}
.hero h1,
.intro h1 {
  font-size: clamp(42px, 5.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 16px 0 18px;
}
.hero h2 {
  font-size: clamp(19px, 2vw, 28px);
  margin: 0;
  letter-spacing: -0.04em;
}
.hero p:not(.eyebrow),
.intro p,
.reading p {
  color: #c1cbd0;
  max-width: 68ch;
}
.hero small,
.hint,
small,
.tile span,
footer p {
  color: var(--muted);
}
.hero small {
  display: block;
  margin-top: 14px;
}
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  font-weight: 750;
}
.eyebrow:before {
  content: '//';
  color: var(--lime);
  font-size: 1.3em;
  margin-right: 10px;
}
.hero-preview {
  position: absolute;
  right: 2%;
  bottom: 4%;
  z-index: 2;
}
.section,
.intro {
  padding: 30px 0;
}
.section {
  border-top: 1px solid var(--line);
}
.section-head,
.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.section-head {
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(20px, 2.6vw, 34px);
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0;
}
.more {
  font-weight: 650;
  font-size: 0.9rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: 14px;
}
.tile,
.article-list a,
.categories a {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.24s var(--ease),
    border-color 0.24s;
}
.tile:hover,
.article-list a:hover,
.categories a:hover {
  transform: translateY(-3px);
  border-color: #829757;
}
.tile img,
.categories img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: auto;
}
.tile > div,
.tile > a > div {
  padding: 12px;
}
.tile h3,
.empty h3 {
  font-size: 1rem;
  margin: 3px 0;
  line-height: 1.3;
}
.tile small {
  font-size: 0.74rem;
}
.tile span,
.tile p {
  font-size: 0.84rem;
}
.tile img {
  aspect-ratio: 1;
}
.tile details {
  margin: 6px 10px 10px;
}
.categories,
.article-list,
.steps,
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 12px;
}
.categories a {
  position: relative;
  isolation: isolate;
  padding: 55px 14px 12px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.categories img {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: -2;
}
.categories a:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #080c10ef);
  z-index: -1;
}
.article-list a,
.stats > div {
  padding: 18px;
}
.article-list span,
.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}
.steps {
  padding-left: 24px;
  gap: 30px;
}
.crumb {
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 22px;
}
.intro {
  padding-bottom: 18px;
}
.intro h1 {
  font-size: clamp(38px, 5vw, 70px);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 70px);
  align-items: center;
  padding: 24px 0;
}
.viewer {
  min-width: 0;
}
.stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  height: clamp(280px, 35vw, 470px);
  background: radial-gradient(ellipse, #262e34, #0d1116 68%);
  border: 1px solid var(--line);
  border-radius: 14px;
  touch-action: pan-y;
}
.stage img.still {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: inherit;
  transition:
    transform 0.32s var(--ease),
    filter 0.3s;
}
.stage.ready .still {
  visibility: hidden;
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.viewer .tools {
  margin: 10px 0;
  gap: 5px;
}
.tools button {
  padding: 6px 10px;
  min-height: 38px;
  font-size: 0.85rem;
}
.price {
  font-size: 2rem;
  font-weight: 750;
}
.price small {
  font-size: 0.95rem;
}
.tabs {
  margin: 10px 0 20px;
}
.tabs a,
.tools a {
  padding: 6px 9px;
  border-bottom: 1px solid var(--line);
}
.stats {
  margin: 20px 0;
}
.stats > div,
.empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stats strong {
  font-size: 1.7rem;
  color: var(--lime);
}
.empty {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
}
.empty p {
  margin: 6px 0;
}
label {
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
  color: #ccd5da;
}
label:has([type='checkbox']) {
  display: inline-flex;
  align-items: center;
}
input,
select,
textarea {
  background: #0c1116;
  color: var(--text);
  border: 1px solid #55616a;
  border-radius: 5px;
  padding: 8px;
  max-width: 100%;
}
input[type='checkbox'] {
  accent-color: var(--lime);
}
.filters,
.edit {
  margin: 14px 0;
}
.filters {
  align-items: end;
}
.edit {
  display: grid;
  gap: 10px;
  max-width: 620px;
}
.edit button {
  justify-self: start;
}
.edit label:has(input[type='hidden']) {
  display: none;
}
.preferences {
  align-items: end;
  padding: 12px 0;
}
.scroll,
pre {
  overflow: auto;
}
.scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
.scroll th,
.scroll td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}
.row,
details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
summary {
  cursor: pointer;
}
.reading {
  max-width: 760px;
}
.reading > p {
  font-size: 1.15rem;
}
.reading small {
  display: block;
  margin: 25px 0;
}
footer {
  margin-top: 40px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}
footer nav {
  font-size: 0.86rem;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #e7f2dc;
  color: #172513;
  border-radius: 7px;
  padding: 12px 20px;
  max-width: 90vw;
}
dialog {
  background: #10151b;
  color: var(--text);
  border: 1px solid #4a535d;
  border-radius: 14px;
  width: min(780px, 95vw);
  max-height: 92dvh;
  overflow: auto;
  padding: 24px;
}
dialog::backdrop {
  background: #030608de;
}
dialog[open] {
  animation: arrive 0.22s var(--ease);
}
dialog h2 {
  margin: 0 0 12px;
}
.scene {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 240px;
  height: min(45vh, 380px);
  overflow: hidden;
  background: radial-gradient(ellipse, #29323d, #0a0d12 70%);
  border-radius: 10px;
}
.scene .stage {
  height: 100%;
  border: 0;
}
.scene > .wrapper,
.scene > .back,
.scene > .reveal-art {
  grid-area: 1/1;
  width: auto;
  max-width: 80%;
  height: 82%;
  max-height: 320px;
  object-fit: contain;
}
.scene > .wrapper {
  width: 100%;
  height: 100%;
}
.scene > .back,
.scene > .reveal-art {
  position: absolute;
  border-radius: 8px;
}
.scene .reveal-art {
  border: 3px solid var(--glow, #c7d2db);
  box-shadow: 0 0 25px var(--glow, #c7d2db);
}
.scene[data-phase='TEARING'] .wrapper {
  animation: tear 0.62s both;
}
.scene[data-phase='CARD_EXTRACT'] .wrapper {
  opacity: 0.2;
}
.scene[data-phase='CARD_EXTRACT'] .back {
  animation: extract 0.74s both;
}
.scene[data-phase='CARD_REVEAL'] .reveal-art {
  animation: flip 0.75s both;
}
.spark {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dialog-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.shelf .grid {
  gap: 28px 14px;
}
.shelf .tile {
  border-bottom: 6px solid #536069;
}
.list-mode .grid {
  grid-template-columns: 1fr;
}
.list-mode .collectible > a {
  display: flex;
  align-items: center;
}
.list-mode .collectible img {
  width: 68px;
  height: 68px;
}
.tile:hover img {
  filter: brightness(1.05);
}
.visible-enter {
  animation: arrive 0.4s var(--ease);
}
.busy {
  opacity: 0.66;
}
.busy button {
  cursor: progress;
}
.tabs a:hover,
.tools a:hover {
  border-color: var(--lime);
}
.stage.touch-3d {
  touch-action: none;
}
@keyframes tear {
  50% {
    transform: rotate(-4deg) scale(1.03);
  }
  100% {
    transform: rotate(3deg);
  }
}
@keyframes extract {
  from {
    opacity: 0;
    transform: translateY(45%) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes flip {
  from {
    transform: perspective(600px) rotateY(-88deg) scale(0.9);
  }
  to {
    transform: none;
  }
}
@keyframes arrive {
  from {
    opacity: 0.25;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .desktop {
    display: none;
  }
  .mobile {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #10151bf5;
    border-top: 1px solid var(--line);
    padding: 10px 2px max(10px, env(safe-area-inset-bottom));
    font-size: 0.83rem;
    z-index: 9;
  }
  .mobile a {
    padding: 5px;
  }
  .bar {
    height: 54px;
  }
  footer {
    padding-bottom: 88px;
  }
  #toast:not(:empty) {
    bottom: 74px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding: 23px 0;
  }
  .section-head {
    align-items: center;
  }
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .hero picture {
    position: relative;
    inset: auto;
    order: 2;
    height: 240px;
    width: 100%;
    z-index: 0;
  }
  .hero picture img {
    object-fit: cover;
    object-position: 60% 52%;
    z-index: 0;
  }
  .hero:after {
    display: none;
  }
  .hero-copy {
    width: 100%;
    padding: 24px 2px 16px;
  }
  .hero-copy h1 {
    font-size: clamp(42px, 9vw, 60px);
  }
  .hero-copy .eyebrow {
    margin-top: 0;
  }
  .hero-copy small {
    margin-top: 8px;
  }
  .hero .actions {
    gap: 7px;
  }
  .hero .actions a {
    font-size: 0.86rem;
    padding: 8px 11px;
  }
  .hero-preview {
    bottom: 12px;
  }
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters > * {
    max-width: 100%;
  }
  button,
  .primary,
  .outline {
    min-height: 44px;
  }
  dialog {
    padding: 14px;
  }
  .stage {
    height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
html[data-reduced='true'] *,
html[data-reduced='true'] *:before,
html[data-reduced='true'] *:after {
  animation: none !important;
  transition: none !important;
}

@media (min-width: 761px) {
  .hero h1 {
    font-size: clamp(44px, 4.5vw, 73px);
  }
  .hero picture img {
    object-fit: contain;
    object-position: right center;
  }
  .hero {
    background: #090b0d;
  }
  .hero-copy {
    width: 53%;
    max-width: 690px;
  }
  .hero-preview {
    opacity: 0.92;
  }
}
.hero-model {
  position: absolute;
  inset: 0 0 0 49%;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: radial-gradient(ellipse at 60% 55%, #273526 0, #101716 44%, #090b0d 80%);
  padding: 14px 12px;
}
.hero-model .stage {
  height: 100%;
  min-height: 0;
}
.hero-model .tools {
  justify-content: center;
}
.hero-preview[hidden] {
  display: none;
}
.hero-model canvas {
  touch-action: none;
}
.viewer[data-finish]:not([data-finish='0']) .stage:not(.ready)::after {
  content: '';
  position: absolute;
  inset: 10% 20%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, #83d8fc40 35%, #dcc7fc55 45%, transparent 66%);
  mix-blend-mode: screen;
}
.viewer[data-finish='3'] .stage:not(.ready)::after {
  background: linear-gradient(120deg, transparent, #e9b64e55, transparent);
}
.completion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
}
.completion a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  padding: 1rem;
  background: var(--panel);
}
.completion progress {
  grid-column: 1/-1;
  width: 100%;
  accent-color: #c1f875;
}
.showcase-control {
  margin-bottom: 1rem;
}
.showcase-control select {
  max-width: 100%;
}
dialog:has(.showcase-control) .stage {
  touch-action: none;
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root) {
    animation-duration: 0.12s;
  }
  ::view-transition-new(root) {
    animation-duration: 0.18s;
  }
  .completion progress {
    animation: arrive 0.32s ease-out both;
  }
}
