/* Airy chapter drawings; text stays in ordinary HTML above its own paper surface. */
.atelier-chapter-header { position: relative; padding-right: 190px; min-height: 138px; }
.atelier-chapter-art { position: absolute; right: 0; top: 0; width: 174px; height: 138px; pointer-events: none; }
.atelier-art { position: absolute; display: block; width: 126px; height: 138px; left: 0; top: 0; }
.atelier-art + .atelier-art { width: 86px; height: 100px; top: 49px; left: 88px; }
.atelier-art img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.atelier-art.is-atelier-webgl img { visibility: hidden; }
.atelier-art-footer { position: relative; left: auto; top: auto; width: 108px; height: 132px; margin: 12px 0 8px; }
.atelier-webgl { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.atelier-webgl canvas { display: block; width: 100%; height: 100%; }
.atelier-surface { position: relative; transform-style: preserve-3d; }
.atelier-surface:not(.ed-pending), .atelier-type:not(.ed-pending) { transform: none; }
.atelier-surface.is-atelier-moving, .atelier-type.is-atelier-moving { will-change: transform; transition: box-shadow 650ms cubic-bezier(.16,1,.3,1), border-color 650ms ease, text-shadow 650ms ease; }
.atelier-enabled .atelier-surface.is-atelier-active { box-shadow: var(--atelier-shadow-x, 0px) 18px 34px -15px rgb(40 86 64 / .23), 0 3px 7px -4px rgb(40 86 64 / .18); border-color: rgb(119 144 119 / .5); z-index: 2; }
.atelier-enabled .atelier-surface:focus-within { box-shadow: 0 12px 25px -15px rgb(40 86 64 / .22); }
.atelier-type { transform-origin: 40% 50%; }
.atelier-enabled .atelier-type.is-atelier-active { text-shadow: 0 3px 8px rgb(40 86 64 / .13); }
.atelier-sheen { position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at var(--atelier-light-x,50%) var(--atelier-light-y,50%), rgb(255 255 245 / .16), transparent 68%); transition: opacity 650ms cubic-bezier(.16,1,.3,1); }
.atelier-enabled .is-atelier-active > .atelier-sheen { opacity: 1; }
@media (max-width: 767px) {
  .atelier-chapter-header { padding-right: 0; min-height: 0; }
  .atelier-chapter-art { position: relative; width: 136px; height: 94px; margin: 0 0 18px auto; }
  .atelier-art { width: 88px; height: 96px; }
  .atelier-art + .atelier-art { width: 64px; height: 72px; top: 24px; left: 69px; }
  .atelier-art-footer { width: 88px; height: 108px; }
}
@media (pointer: coarse) {
  .atelier-surface, .atelier-type { transform: none !important; }
  .atelier-sheen { display: none; }
}
@media print {
  .atelier-webgl { display: none !important; }
  .atelier-art.is-atelier-webgl img { visibility: visible; }
  .atelier-surface, .atelier-type { transform: none !important; box-shadow: none !important; }
}
