/* 2026-11 round 2, phase C: styles for the new bits of the toys and tools. The thumbnail picker that
   replaces the three drawing dropdowns (art-picker.js), the date line on the daily drawing, the two
   "take this drawing to play" links in the viewer, and the workbench's "you can drop it here" state.
   Loaded after motion-more.css. To undo: remove this <link> (the picker then shows unstyled; remove
   art-picker.js as well to get the plain dropdowns back). */

/* ---------- thumbnail picker ---------- */
.art-picker{position:relative;max-height:244px;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;width:100%;padding:8px 8px 2px;border:1px solid #dfcec4;border-radius:4px;background:#fffcf7;scrollbar-width:thin;scrollbar-color:#d1a9a9 #f5eade}
.art-picker-group{display:grid;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:6px;margin-bottom:10px}
.art-picker-head{grid-column:1/-1;font-size:11px;letter-spacing:.06em;color:#97817a;margin:2px 0 -1px}
.art-picker-option{position:relative;aspect-ratio:1;border-radius:3px;overflow:hidden;cursor:pointer;background:#f5eddf;box-shadow:0 1px 2px #604d4820;outline:0}
.art-picker-option img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.art-picker-option[aria-selected=true]{box-shadow:0 0 0 2px #a44e58,0 3px 8px -2px #a44e5866}
.art-picker-option[aria-selected=true]:after{content:'';position:absolute;top:-3px;left:50%;width:22px;height:8px;margin-left:-11px;background:#e8bfc4d9;rotate:-6deg}
.art-picker-option:focus-visible{outline:3px dashed #6f515b;outline-offset:2px;z-index:1}
.art-picker-option:hover:not([aria-selected=true]){box-shadow:0 0 0 1px #c9a3a6}
.art-picker-current{color:#a44e58}
.puzzle-workspace .toy-controls>.art-picker{grid-column:1/-1}
@media(max-width:760px){.art-picker{max-height:190px}.art-picker-group{grid-template-columns:repeat(auto-fill,minmax(52px,1fr))}}

/* ---------- daily drawing ---------- */
.toy-draw-date{margin:6px 0 -6px;font-size:12px;letter-spacing:.06em;color:#a47777}

/* ---------- viewer: take this drawing to the playroom ---------- */
.viewer-play{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:0 20px;margin:0}
.viewer-play a{display:inline-flex;align-items:center;min-height:40px;font-size:13px;color:#8e4755;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#cfa6ad}
.viewer-play a:focus-visible{outline:2px solid #8e4755;outline-offset:3px}
body[data-chapter="黑童话"] .viewer-play a{color:#eaa9b5;text-decoration-color:#7d4a55}

/* ---------- workbench: a dashed "drop it here" sheet while files are dragged over a preview ---------- */
.wb-preview{position:relative}
.wb-preview.is-drop-ready{outline:3px dashed #a45365;outline-offset:-10px;background:#f6e3e3}
.wb-preview.is-drop-ready:after{content:attr(data-drop);position:absolute;inset:auto 0 18px;text-align:center;font-size:14px;color:#7d3a48;pointer-events:none}
.wb-preview.is-drop-ready>*{opacity:.45}

@media(forced-colors:active),(prefers-contrast:more){
 .art-picker{background:Canvas;border-color:CanvasText}
 .art-picker-option[aria-selected=true]{outline:3px solid Highlight;box-shadow:none}
 .art-picker-option[aria-selected=true]:after{display:none}
 .wb-preview.is-drop-ready{outline-color:Highlight;background:Canvas}
}
