/* The slides' overhead projector, laid exactly over the room's projector light (slides.js). Used by slides.html (the
   slides lab); the page will use it again once the slides are worked out. The page or lab positions .slides itself
   (fixed on the page, absolute in the lab); runSlides' place() sets its box to the light's, and sets the numbers below
   from the light's shape (room.js litShape), so the field has the light's corners and the sheets its proportions.
   No keystone, no dark room around it: the field is the light itself. */
.slides{pointer-events:none; visibility:hidden; max-width:none; margin:0}
.slides .oh-room{background:transparent; padding:0; border-radius:0; height:100%; overflow:visible}
.slides .oh-field{aspect-ratio:auto; height:100%; transform:none; box-shadow:none; border-radius:var(--oh-rx, 7.7%) / var(--oh-ry, 12%); container-type:inline-size}
/* a transparency is a square 120% of the screen's width; the pen's window on it is the screen */
.slides .oh-sheet{top:var(--sheet-top); height:var(--sheet-h)}
.slides .oh-sheet svg{top:var(--svg-top); height:var(--svg-h)}
/* the heading as part of the projection (Toby, 2026-11-24): on the glass, under every sheet, in the page heading's type,
   multiplied into the light like the ink. Top left, toward the corner (his ask; the title sits beside it once it moves up). */
.slides .proj-head{position:absolute; left:3.4cqw; top:2.8cqw; mix-blend-mode:multiply; pointer-events:none; opacity:var(--headop, 1)}   /* the page hides it until the pinned heading has glided onto it */
.slides .proj-head h1{margin:0; font:400 5.6cqw/1 var(--display); color:var(--dusk-shade); text-shadow:.2cqw .2cqw 0 var(--amber)}
.slides .proj-head p{margin:1cqw 0 0; font:700 1.12cqw/1 var(--mono); letter-spacing:.22em; text-transform:uppercase; color:#2a211e}
.slides .proj-head p span + span{margin-left:1.4em}
.slides .proj-head p span.on{text-decoration:underline; text-decoration-color:var(--dusk-shade); text-decoration-thickness:.22em; text-underline-offset:.42em; text-decoration-skip-ink:none}
/* the visitor's buttons: add a rule (or take it off). Along the bottom of the window, under the light; the page or lab
   positions them (fixed on the page, absolute in the lab's window). 20% bigger than at first, with the style's button
   shadow (Toby, 2026-11-24): a hard 3 px shadow in the deep shade, and a button that's on is pressed in */
/* 25% bigger again (Toby, 2026-11-24; they may run over the light's edge): 43 px, was 34 */
.adders{z-index:40; left:0; right:0; bottom:8px; display:flex; justify-content:center; align-items:center; gap:11px; transition:opacity .4s}
.adders span{font:700 16px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; color:var(--ink); margin-right:8px}
.adders button{width:43px; height:43px; border-radius:50%; border:2.5px solid var(--dusk-shade); background:var(--paper); color:var(--dusk-shade); font:700 19.5px/1 var(--mono); cursor:pointer; padding:0;
  box-shadow:3px 3px 0 var(--dusk-shade); transition:transform .15s, box-shadow .15s, background-color .2s, color .2s}
.adders button:hover{background:var(--cream); animation:bob 2.6s ease-in-out infinite}
.adders button:active, .adders button[aria-pressed="true"]{animation:none; transform:translate(3px, 3px); box-shadow:0 0 0 var(--dusk-shade)}
.adders button[aria-pressed="true"]{background:var(--dusk-shade); color:var(--paper)}
.adders button:focus-visible{outline:2px solid var(--amber); outline-offset:3px}
@media (prefers-reduced-motion: reduce){ .adders button:hover{animation:none} }
/* on a phone the row is wider than the window: the label on its own line, the eight buttons sized to fit across (43 px
   where there's room), and the row lifted clear of the light switch in the corner (Toby, 2026-11-24) */
@media (max-width: 640px){
  .adders{flex-wrap:wrap; bottom:108px; gap:7px; padding:0 12px}
  .adders span{flex-basis:100%; text-align:center; margin:0 0 6px}
  .adders button{width:min(43px, calc((100vw - 24px - 49px) / 8)); height:min(43px, calc((100vw - 24px - 49px) / 8)); font-size:16px}
}

/* Show the logic on the sheets (Toby, 2026-11-24): each sheet's landing written small on it, only while the logic is on
   (the page's body.logic-on) */
.oh-logic{display:none}
body.logic-on .oh-logic{display:inline}

/* Clear: a pill after the eight, the same shadow and press (Toby, 2026-11-24) */
.adders button.aclear{width:auto; height:43px; border-radius:999px; padding:0 16px; margin-left:6px; font:700 13px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase}
.adders button.aclear[hidden]{display:none}
@media (max-width: 640px){ .adders button.aclear{height:min(43px, calc((100vw - 24px - 49px) / 8)); margin-left:0} }
