/* ===== "Draw 4 Me" paint window (Win98 styling) ===== */
.dood-ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 100000; }
.dood-win { background: #c3c3c3; color: #000; width: 520px; max-width: 96vw; font-family: Tahoma, Verdana, sans-serif;
  border: 2px solid; border-color: #fff #808080 #808080 #fff; box-shadow: 2px 2px 0 rgba(0,0,0,.4), 0 6px 26px rgba(0,0,0,.55); }
.dood-title { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg,#00007b,#1084d0); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 4px 3px 8px; letter-spacing: .5px; }
.dood-x { width: 20px; height: 18px; line-height: 1; font-size: 12px; cursor: pointer; background: #c3c3c3; color: #000; padding: 0; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.dood-x:active { border-color: #808080 #fff #fff #808080; }
.dood-body { padding: 8px; }
.dood-canvas { display: block; width: 100%; height: auto; background: #fff; touch-action: none; cursor: crosshair; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.dood-bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dood-btn { cursor: pointer; font-size: 12px; padding: 3px 9px; background: #c3c3c3; color: #000; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.dood-btn:active, .dood-btn.on { border-color: #808080 #fff #fff #808080; }
.dood-pal { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 8px; }
.dood-sw { width: 18px; height: 18px; cursor: pointer; padding: 0; border: 1px solid #555; }
.dood-sw.on { outline: 2px solid #1084d0; outline-offset: -1px; }
.dood-size { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
.dood-size input { flex: 1; }
.dood-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: center; flex-wrap: wrap; }
.dood-status { font-size: 12px; margin-top: 6px; text-align: center; min-height: 16px; color: #00007b; font-weight: 700; }

/* while drawing, hide the custom-cursor cosmetic and show a real crosshair on the canvas */
html.dood-drawing .fb-cursor-img { display: none !important; }
html.dood-drawing .dood-canvas { cursor: crosshair !important; }

/* ===== Doodle gallery ===== */
.dood-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; margin-top: 12px; }
.dood-cell { display: flex; flex-direction: column; position: relative; }
.dood-cell:hover { z-index: 5; }
.dood-frame { padding: 10px; border-radius: 2px; background: linear-gradient(135deg, #f6e27a, #caa12f 40%, #8a6d1d 60%, #e8cf73);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 0 0 6px rgba(255,255,255,.15), 0 3px 7px rgba(0,0,0,.5);
  transition: transform .18s ease, box-shadow .18s ease; transform-origin: center; }
/* "pick it up and inspect it" on hover */
.dood-cell:hover .dood-frame { transform: scale(1.18) rotate(-2.5deg) translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.6); }
.dood-frame img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid #4a3a10; }
.dood-label { font-size: 12px; margin-top: 6px; overflow-wrap: anywhere; }
.dood-delform { display: inline; }
.dood-del { background: none; border: none; padding: 0; margin-left: 4px; font-size: 12px; color: #c0392b; cursor: pointer; }
.dood-del:hover { text-decoration: underline; }
.dood-pager { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 18px; }

/* head actions, banned notice, favorites */
.dood-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dood-banned { background: rgba(192,57,43,.15); border: 1px solid rgba(192,57,43,.5); color: #c0392b; padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.dood-faves-h { margin-bottom: 8px; }
.dood-sep { border: none; border-top: 1px dashed rgba(127,127,127,.4); margin: 20px 0; }
.dood-pin-tag { font-size: 11px; font-weight: 700; color: #b8860b; text-align: center; margin-bottom: 3px; }

/* votes (squared 98-ish buttons) */
.dood-votes { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.dood-vote { cursor: pointer; font-size: 12px; padding: 2px 8px; background: rgba(127,127,127,.14); color: inherit; border: 2px solid; border-radius: 0;
  border-color: rgba(255,255,255,.5) rgba(0,0,0,.45) rgba(0,0,0,.45) rgba(255,255,255,.5); }
.dood-vote:hover:not(:disabled) { background: rgba(127,127,127,.28); }
.dood-vote:disabled { opacity: .5; cursor: default; }
.dood-vote.up.on { background: #218c54; color: #fff; }
.dood-vote.down.on { background: #c0392b; color: #fff; }

.dood-cell-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; flex-wrap: wrap; font-size: 12px; }
.dood-flag, .dood-act { background: none; border: none; padding: 0; cursor: pointer; font-size: 12px; color: inherit; }
.dood-flag:hover, .dood-act:hover { text-decoration: underline; }
.dood-flag.flagged { color: #c0392b; }
.dood-del { background: none; border: none; padding: 0; font-size: 12px; color: #c0392b; cursor: pointer; }
.dood-del:hover { text-decoration: underline; }
.dood-hidden-soft { opacity: .45; }
.dood-softnote { font-size: 11px; color: #c0392b; text-align: center; font-weight: 700; }

/* review queue */
.dood-rev-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(127,127,127,.2); }
.dood-rev-frame { flex: 0 0 auto; width: 150px; }
.dood-rev-info { min-width: 0; }
.dood-rev-top { font-size: 14px; }
.dood-hidden-tag { background: rgba(192,57,43,.2); color: #c0392b; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; }
.dood-flag-list { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.dood-rev-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
