/* L'Atelier, c. 1900. Surface tiles are cropped material scans; every stone,
   socket and figure above them remains live geometry. */
:root{--ink:#322930;--quiet:#584b49;--chapter:#563240;--ribbon:#bc955d;--rule:#bca784;--leaf:#fbf3df;--wash:#f1e4c9}
body[data-chapter=sea]{--chapter:#234e50;--ribbon:#bc9766}
body,main,#loupe{background-image:url('atelier-art/vellum.jpg');background-size:160px 160px}
main{border-inline:1px solid #beaa89}.folio-head,#album .folio-head{border-radius:2px 14px 2px 2px;border:1px solid #765148;border-bottom:3px solid var(--ribbon);box-shadow:inset 0 0 0 3px var(--chapter),inset 0 0 0 4px #f8dc9c52;background:linear-gradient(100deg,var(--chapter) 62%,#322a32)}
.folio-head::after{width:80px;background:url('atelier-art/chapters.png') left center/160px 80px no-repeat}
body[data-chapter=sea] .folio-head::after{background-position:right center}
.mirror{border:3px double #b18d55;background:#564345;box-shadow:0 2px 6px #44302740}.mirror::before,.mirror::after{top:0;width:17px;height:17px;transform:none;background:linear-gradient(135deg,#e0c994 36%,#9a7643 39%,transparent 44%)}.mirror::after{transform:scaleX(-1)}.plaque{border:1px solid #ad8954;background:#f7e8cbeF}
#slots button{border-radius:12px 12px 2px 2px;background:radial-gradient(ellipse at 50% 28%,#fffaf0,#ede2ce 85%)}#slots button[aria-pressed=true]{background:#eee1c5;box-shadow:inset 0 0 0 2px #fff3dc}.pattern,#albumCaption{border-block:1px solid var(--rule);background:#fffaedaa}.pattern{border-left:3px solid var(--chapter)}
#album .mirror{margin-inline:6px;border:6px double #b29973;background:#e5d3ad;padding:6px}#albumCaption{font:italic 1rem/1.4 Georgia,serif;padding:.6em}
#loupe{border:3px double #a88963;background-color:#f3e7d0}.specimen{border-radius:45% 45% 6% 6%;background:radial-gradient(ellipse at 46% 40%,#fff8e8,#eadabe 78%,#b59c72)}
[data-loupe]::before,#benchGuide::before{content:'';display:inline-block;width:18px;height:18px;vertical-align:-4px;margin-right:5px;background:url('atelier-art/punches.png') 75% center/500% 100% no-repeat}#benchGuide::before{background-position:100% center}
.mineral-bench{border:1px solid #b99f76;border-radius:3px 12px 3px 3px;background:#f7ecd6 url('atelier-art/vellum.jpg') center/160px}.mb-head{padding:3px 3px 6px;border-bottom:1px solid #af9369}.mb-head h2{color:var(--chapter)}.mb-order{background:linear-gradient(100deg,#dfcdaa,#f6ecd9 62%,#eadcc2);border:1px solid #bcaa8b}.mb-turns{border-inline-start:1px solid #bca985;padding-inline-start:8px}
/* Raking light on graphite pile, not a shiny frame on every cell. The pressed
   wells sit behind the WebGL canvas; hints, punches and touch targets stay above. */
.mb-tray{border-radius:5px;background:
  radial-gradient(ellipse at 24% 9%,#b5b4b214,transparent 57%),
  linear-gradient(154deg,transparent 34%,#12151938 90%),
  #292b2e url('atelier-art/velvet.jpg') center/128px;
  box-shadow:inset 0 2px 4px #100e1166,inset 1px 0 2px #14151966,0 0 0 1px #b99a63,0 1px 0 2px #6b523a,1px 4px 6px #3c282844}
.mb-grid .mb-cell{border:0;border-radius:20%;background:transparent}
.mb-grid .mb-cell::before{content:'';position:absolute;inset:4% 3%;z-index:-1;pointer-events:none;background:
  radial-gradient(ellipse at 48% 41%,#090c103d 24%,#0d0f1430 46%,transparent 69%),
  radial-gradient(ellipse at 52% 61%,#9d999911 30%,transparent 70%)}
.mb-cell[data-hint=yes]{outline:2px dashed #ffdf95;outline-offset:-3px}.mb-cell[aria-pressed=true]{outline:2px solid #fff1bb;outline-offset:-3px}
.mb-grid .mb-cell[data-mark]:not([data-mark="0"])::after{content:'';pointer-events:none;right:1px;bottom:1px;width:clamp(12px,4vw,18px);aspect-ratio:1;padding:0;background:transparent url('atelier-art/punches.png') var(--punch,0%) center/500% 100% no-repeat}.mb-cell[data-mark="2"]{--punch:25%}.mb-cell[data-mark="3"]{--punch:50%}
.mb-actions button,.mb-head button{min-height:44px}#mineralEnd{border:1px solid #b79968;background:#f1e2bf}
