:root {
  /* No `color-scheme: dark` — it makes the browser paint an opaque dark canvas
     behind the iframe even when the body is transparent. */
  --bg: #070a0e;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
}

body {
  /* Transparent so the card sits directly on whatever embeds it (e.g. the docs
     page) instead of carrying its own dark "view" background. */
  background: transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

#app {
  display: grid;
  place-items: center;
  perspective: 1500px;
}

.card-hitbox {
  position: relative;
  aspect-ratio: 0.716;
  perspective: 1500px;
  touch-action: none;
}

.card-shell {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: flat;
  backface-visibility: hidden;
  isolation: isolate;
  pointer-events: none;
  border: 1px solid rgb(255 255 255 / 0.09);
}

.card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: inherit;
}
