/* The roundabout and the pile in 3D (19 Nov 2026; static/documentation-3d.js), on the documentation index and the
   public welcome page. Darren: "it's ok to give it some more visual flair with three.js and/or gsap".
   documentation.css and welcome.css decide when each box shows (a desktop, no reduced motion; .has-3d on the games
   and the welcome hero); this file only sizes and dresses the scenes. */

/* the roundabout in the header: the canvas fades out at both ends so the exits run off into the page */
.doc-hero3d { position: relative; }
.doc-hero3d canvas { display: block; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.hero3d-label { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; z-index: 2;
  font-size: 1rem; font-weight: 600; line-height: 1.2; padding: .25rem .65rem .25rem .55rem; border-radius: 999px;
  color: var(--text); background: var(--card); border: 2px solid var(--c, var(--border));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.hero3d-label[hidden] { display: none; }
/* the welcome page's bubble: the hub's name and one line about that kind of matter (positioned by the script) */
.hero3d-label.has-line { white-space: normal; width: max-content; max-width: min(24rem, calc(100% - 16px));
  border-radius: 12px; padding: .55rem .85rem .6rem; font-weight: 400; font-size: 1rem; line-height: 1.4;
  border-width: 2px 2px 2px 6px; }
.hero3d-label.has-line strong { display: block; font-size: 1.1rem; margin-bottom: .1rem; }
.hero3d-label.has-line span { display: block; color: var(--muted); }

/* the pile at the end of the page: the same box as the CSS blocks it replaces */
.doc-games.has-3d .games-fall { display: none; }
.doc-games.has-3d .games-3d { position: relative; width: 9rem; height: 14rem; overflow: hidden;
  border: 2px solid var(--border); border-radius: 8px; background: var(--bg); }
.games-3d canvas { display: block; width: 100%; height: 100%; }

@media print { .doc-hero3d, .games-3d { display: none !important; } }
