/* ═══════════════════════════════════════════════════════════════
   PILLS MIXER — THE ILLUSTRATED LAYER (js/pills-mixer-art.js)
   Over pills-mixer-style.css: pill art in the stock and the slots,
   the glass of the beaker, the brief's polaroid.
   ═══════════════════════════════════════════════════════════════ */
.pmx-pill-tile .pmx-art { width: 60px; height: 60px; object-fit: contain; display: block; margin: 0 auto; filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); transition: transform .15s ease; }
.pmx-pill-tile.pmx-enh .pmx-art { width: 46px; height: 70px; }
.pmx-pill-tile.has-art .pmx-pill-bead, .pmx-pill-tile.has-art .pmx-pill-capsule { display: none; }
.pmx-pill-tile:hover .pmx-art { transform: translateY(-2px) scale(1.04); }
.pmx-pill-cap { font-family: 'Special Elite', 'Courier New', monospace; font-size: 10px; letter-spacing: .16em; color: #5F5449; text-transform: uppercase; margin-top: 3px; }
.pmx-pill-tile.pmx-enh .pmx-pill-cap { display: none; }
/* the flashback's ghosts keep their blur; the art follows the tile */
.pmx-slot.filled.has-art { background: radial-gradient(circle at 50% 45%, #f5f0e2, #e6dfcc) !important; color: #3A3238 !important; position: relative; overflow: visible; }
.pmx-slot.filled.has-art .pmx-art { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); }
.pmx-slot.filled.has-art .pmx-slot-qty { position: absolute; right: -6px; bottom: -4px; font-size: 11px; line-height: 1; background: #3A3238; color: #EBE6D8; border: 1px solid #EBE6D8; border-radius: 10px; padding: 3px 7px; letter-spacing: .04em; }
.pmx-slot.filled:not(.has-art) .pmx-slot-qty { display: none; }
/* the glass */
.pmx-beaker-body { border: 2px solid #7a746a; border-top: none; border-radius: 0 0 16px 16px; background: linear-gradient(90deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.10) 18%, rgba(255,255,255,0) 55%, rgba(255,255,255,.28) 92%, rgba(255,255,255,.06) 100%); box-shadow: inset 0 -6px 14px rgba(0,0,0,.10), 0 10px 18px -10px rgba(0,0,0,.45); }
.pmx-beaker-rim { left: -6px; right: -6px; top: -3px; height: 7px; border-radius: 50%; background: linear-gradient(#d9d3c4, #8f887a); box-shadow: 0 1px 0 rgba(255,255,255,.5); }
.pmx-beaker-liquid { border-radius: 0 0 12px 12px; }
.pmx-beaker-liquid::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: linear-gradient(rgba(255,255,255,.36), rgba(255,255,255,0)); pointer-events: none; }
/* the brief's polaroid */
.pmx-brief-photo { float: right; width: 96px; margin: 0 0 8px 10px; padding: 5px 5px 12px; background: #f4eddb; border: 1px solid #b9ad95; box-shadow: 0 4px 10px rgba(0,0,0,.35); transform: rotate(2.5deg); }
.pmx-brief-photo img { display: block; width: 100%; filter: sepia(.3) contrast(1.05); }
.pmx-brief::after { content: ''; display: block; clear: both; }
/* the stock as the sheet reads it */
.pmx-class-label.pmx-class-label-big { font-family: 'Special Elite', 'Courier New', monospace; font-size: 12px; letter-spacing: 2.5px; color: #3A3238; border-bottom: 1px solid #8E7F7F; padding-bottom: 5px; margin-bottom: 10px; }
.pmx-class-label.enh.pmx-class-label-big { color: #8b2f47; border-top: 0; padding-top: 12px; }
.pmx-stock-grid { grid-template-columns: 1fr 1fr; gap: 10px 10px; }
.pmx-pill-tile:not(.pmx-enh) { border: 1px solid #b9ad95; background: rgba(255,255,255,.28); padding: 8px 4px 7px; box-shadow: inset 0 0 0 2px #EBE6D8, inset 0 0 0 3px rgba(142,127,127,.35); }
.pmx-pill-tile:not(.pmx-enh) .pmx-pill-count { top: 2px; right: 2px; }
.pmx-pill-sub { font-size: 9px; color: #8E7F7F; letter-spacing: .04em; line-height: 1.2; margin-top: 2px; }
.pmx-enh-row .pmx-pill-tile { padding: 6px 2px; }
/* recipes: the same pills, small */
.pmx-slip-slot.known.has-art { background: transparent !important; border-color: transparent; box-shadow: none; overflow: visible; }
.pmx-slip-slot .pmx-art { width: 26px; height: 26px; object-fit: contain; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
/* the scale beside the glass */
.pmx-beaker-scale { position: absolute; left: -52px; top: 2px; bottom: 3px; width: 44px; border-right: 1px solid #8E7F7F; background: repeating-linear-gradient(0deg, rgba(95,84,73,.22) 0 1px, transparent 1px 8px), repeating-linear-gradient(0deg, rgba(95,84,73,.35) 0 1px, transparent 1px 40px); pointer-events: none; }
.pmx-beaker-scale i { position: absolute; right: 5px; transform: translateY(50%); font-style: normal; font-family: 'Courier New', monospace; font-size: 10px; color: #5F5449; line-height: 1; white-space: nowrap; }
.pmx-beaker-scale i small { font-size: 8px; color: #8E7F7F; }
.pmx-beaker-scale i::after { content: ''; position: absolute; left: calc(100% + 1px); top: 50%; width: 9px; height: 1px; background: #5F5449; }
.pmx-beaker-scale-mark { position: absolute; left: 6px; right: -8px; height: 2px; background: #8B0000; opacity: 0; transition: bottom .52s cubic-bezier(.32, 1.12, .35, 1), opacity .3s ease; }
.pmx-beaker-scale-mark::after { content: ''; position: absolute; right: -4px; top: -3px; border: 4px solid transparent; border-left: 5px solid #8B0000; }
/* the row keeps its centre with the scale on the left */
.pmx-result-row { grid-template-columns: 182px 300px; }
.pmx-beaker { margin-left: 52px; }
/* the taller stock: the "tap to add" foot flows after the capsules (absolute, it sat over their names) */
.pmx-enh-row { margin-bottom: 0; }
.pmx-tap-hint { position: static; margin-top: 12px; }
/* ── sitting the art into the paper (2026-09-27) ── */
/* 1. the pills: less gloss, less saturation — the sheet's own tone */
/* variant C (2026-09-27): the pill is PRINTED into the paper — multiply lets the
   grain through and puts out the render's white specular; a one-pixel contact
   shadow keeps it from reading as a sticker. The cast shadow that hung every
   pill above the sheet is gone. */
.pmx-pill-tile .pmx-art, .pmx-slot.filled.has-art .pmx-art, .pmx-slip-slot .pmx-art { filter: sepia(.25) saturate(.82) contrast(.98) brightness(1.02) drop-shadow(0 1px 1px rgba(0,0,0,.28)); mix-blend-mode: multiply; }
/* 2. counts are tags on the paper, not phone badges */
.pmx-pill-tile .pmx-pill-count { top: 4px; right: 4px; width: auto; height: auto; min-width: 0; border-radius: 2px; background: #EBE6D8; color: #3A3238; border: 1px solid #8E7F7F; font-family: 'Courier New', monospace; font-size: 10px; line-height: 1; padding: 2px 4px; box-shadow: 1px 1px 0 rgba(0,0,0,.15); }
.pmx-pill-tile .pmx-pill-count::before { content: '×'; }
.pmx-pill-tile .pmx-pill-count.empty { color: #8E7F7F; background: transparent; font-size: 0; padding: 3px 4px; }
.pmx-pill-tile .pmx-pill-count.empty::before { content: 'OUT'; font-size: 8px; letter-spacing: .08em; }
/* 3. a filled slot keeps the sheet's dashed ring — the pill is the weight */
.pmx-slot.filled.has-art { background: transparent !important; border: 2.5px dashed #5F5449 !important; box-shadow: none !important; }
.pmx-slot.filled.has-art .pmx-art { width: 62px; height: 62px; }
.pmx-slot.filled.has-art .pmx-slot-qty { background: #EBE6D8; color: #3A3238; border: 1px solid #8E7F7F; border-radius: 2px; right: -8px; bottom: -2px; box-shadow: 1px 1px 0 rgba(0,0,0,.15); }
/* 4. one tone for every photograph on the brief */
.pmx-brief-photo img { filter: sepia(.78) contrast(1.08) brightness(.94) saturate(.9); }
/* 5. the sheet sits BETWEEN the HUD bars (2026-09-27): the window filled the
   whole stage and the bars (top 65 / bottom 43 CSS px, z 9999) covered the
   title row, the RX stamp, the close button and the foot of the footer */
.pmx-window { padding: 66px 24px 44px; }
.pmx-paper { height: min(820px, calc(var(--vh100, 100vh) - 110px)); }
.pmx-close { top: 68px; }
/* 6. the shorter sheet: the stock reads whole without a scroll at 1600×900 —
   the redundant STOCK head goes (the sheet's own title is above, the columns
   read BASE PILLS / ENHANCERS · ADDITIVES), the cards close ranks by a few
   px each, the foot's "tap to add" goes (the centre says it: tap STOCK to drop) */
.pmx-stock { padding: 14px 16px 10px; }
.pmx-stock > .pmx-section-title { display: none; }
.pmx-class-label.pmx-class-label-big { padding-bottom: 4px; margin-bottom: 8px; }
.pmx-stock-grid { gap: 7px 10px; }
.pmx-pill-tile:not(.pmx-enh) { padding: 5px 4px 4px; }
.pmx-pill-cap { margin-top: 1px; }
.pmx-pill-sub { margin-top: 1px; line-height: 1.15; }
.pmx-class-label.enh.pmx-class-label-big { padding-top: 6px; margin-bottom: 4px; }
.pmx-enh-row .pmx-pill-tile { padding: 2px 2px 0; }
.pmx-pill-tile.pmx-enh .pmx-art { width: 44px; height: 66px; }
.pmx-tap-hint { display: none; }
