/* V6: the Paint window on the colour and craft card (Windows 98 look; the page around it keeps the site's style) */
.paint-holder { position: absolute; left: 0; top: 0; width: 739px; height: 958px; }
.pw { position: absolute; width: 372px; height: 330px; transform-origin: 0 0; background: #c0c0c0; color: #000;
  font: 11px/13px Tahoma, "MS Sans Serif", "Microsoft Sans Serif", Geneva, Verdana, sans-serif; -webkit-font-smoothing: none;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 3px 3px 0 rgba(0,0,0,.25);
  user-select: none; overflow: hidden; }
.pw.pw-closed { visibility: hidden; }
.pw * { box-sizing: border-box; }
.pw-r { background: #c0c0c0; box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; }
.pw-s { box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #0a0a0a, inset -2px -2px #dfdfdf; }
.pw-title { position: absolute; left: 3px; top: 3px; right: 3px; height: 18px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; }
.pw-title b { position: absolute; left: 21px; top: 2px; font-weight: 700; letter-spacing: .1px; }
.pw-icon { position: absolute; left: 2px; top: 1px; width: 16px; height: 16px;
  background: linear-gradient(#fff,#fff) 3px 4px/9px 8px no-repeat, linear-gradient(#000,#000) 2px 3px/11px 10px no-repeat,
  radial-gradient(circle at 70% 30%, #ff0000 0 2px, transparent 2.5px), radial-gradient(circle at 35% 70%, #0000ff 0 2px, transparent 2.5px), radial-gradient(circle at 70% 75%, #ffff00 0 2px, transparent 2.5px); }
.pw-b { position: absolute; top: 2px; width: 16px; height: 14px; display: flex; align-items: center; justify-content: center; }
.pw-b.down, .pw-btn.down { box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px #808080, inset -2px -2px #dfdfdf; }
.pw-b.down svg { translate: 1px 1px; }
.pw-menu { position: absolute; left: 3px; top: 22px; height: 18px; display: flex; }
.pw-menu span { padding: 2px 6px 0; }
.pw-menu u { text-decoration: underline; text-underline-offset: 1px; }
.pw-etch { position: absolute; left: 3px; right: 3px; height: 2px; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }
.pw-tool { position: absolute; width: 23px; height: 22px; display: flex; align-items: center; justify-content: center; }
.pw-tool svg { display: block; }
.pw-tool.on { box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px #808080, inset -2px -2px #dfdfdf;
  background: repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0/2px 2px; }
.pw-tool.on svg { translate: 1px 1px; }
.pw-opt { position: absolute; left: 9px; top: 228px; width: 40px; height: 38px; }
.pw-esz { position: absolute; inset: 4px; display: flex; flex-direction: column; align-items: center; justify-content: space-around; visibility: hidden; }
.pw-esz i { display: block; background: #000; }
.pw-esz i:last-child { outline: 2px solid #000080; outline-offset: 1px; }
.pw-ws { position: absolute; left: 56px; top: 42px; width: 313px; height: 227px; background: #808080; }
.pw-cv { position: absolute; left: 5px; top: 4px; width: 290px; height: 205px; image-rendering: pixelated; image-rendering: crisp-edges; }
.pw-tb { position: absolute; display: none; border: 1px dashed #000; }
.pw-tb::after { content: ''; position: absolute; left: 0; top: 0; }
.pw-sv { position: absolute; right: 2px; top: 2px; width: 16px; bottom: 18px; background: repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0/2px 2px; }
.pw-sh { position: absolute; left: 2px; bottom: 2px; height: 16px; right: 18px; background: repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0/2px 2px; }
.pw-ar { position: absolute; width: 16px; height: 16px; font-size: 7px; line-height: 16px; text-align: center; left: 0; top: 0; }
.pw-sv .pw-dn { top: auto; bottom: 0; }
.pw-sh .pw-rt { left: auto; right: 0; }
.pw-sv .pw-th { position: absolute; left: 0; top: 16px; width: 16px; height: 120px; }
.pw-sh .pw-th { position: absolute; top: 0; left: 16px; height: 16px; width: 150px; }
.pw-corner { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; background: #c0c0c0; }
.pw-cur { position: absolute; left: 6px; top: 273px; width: 31px; height: 33px; background: repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0/2px 2px; }
.pw-cur i { position: absolute; width: 13px; height: 13px; }
.pw-fg { left: 5px; top: 5px; z-index: 1; box-shadow: 0 0 0 1px #808080, 1px 1px 0 1px #fff; }
.pw-bg { left: 13px; top: 14px; background: #fff; box-shadow: 0 0 0 1px #808080, 1px 1px 0 1px #fff; }
.pw-sw { position: absolute; width: 16px; height: 16px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #0a0a0a, inset -2px -2px #dfdfdf; }
.pw-status { position: absolute; left: 3px; right: 3px; top: 309px; height: 18px; }
.pw-status span { position: absolute; top: 1px; height: 17px; padding: 3px 4px 0; white-space: nowrap; overflow: hidden;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
.pw-dlg { position: absolute; left: 61px; top: 113px; width: 250px; height: 104px; display: none; background: #c0c0c0; z-index: 5;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 2px 2px 0 rgba(0,0,0,.35); }
.pw-dlg .pw-title b { left: 4px; }
.pw-warn { position: absolute; left: 14px; top: 32px; }
.pw-dlg p { position: absolute; left: 60px; top: 42px; margin: 0; }
.pw-btn { position: absolute; top: 72px; width: 75px; height: 23px; text-align: center; line-height: 23px; }
.pw-def { box-shadow: inset 0 0 0 1px #0a0a0a, inset -2px -2px #0a0a0a, inset 2px 2px #fff, inset -3px -3px #808080, inset 3px 3px #dfdfdf; }
.pw-mouse { position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; line-height: 0; }
.pw-mouse svg { display: block; overflow: visible; }


/* V6 (Niha): no monitor or desktop. The Paint window is drawn flat in the site's style: soft panels split by the same stroke as the tiles,
   no Win98 bevels, and a soft blurred base like the other boards. Light: lilac and teal with the cream stroke. Dark: deep teal with a pale stroke. */
.pwx { position: absolute; --face: #e6e0f2; --face2: #d6cfee; --well: #c9c0e6; --paper: #fff; --ink: #08535f; --stroke: #fdf3ec;
  --title: #08535f; --tink: #fdf3ec; --on: #d6d35e; --glow: rgba(150,138,214,.55); }
.pwx-dark { --face: #0d3d43; --face2: #12484f; --well: #082f34; --paper: #fdfbf6; --ink: #dbfffc; --stroke: rgba(219,255,252,.28);
  --title: linear-gradient(100deg, #b9f3ff, #f7b8e4 55%, #fff1b3); --tink: #06292e; --on: #e5ff00; --glow: rgba(84,211,215,.35); }
.pwx .dt { position: absolute; left: 0; top: 0; width: 372px; height: 330px; transform-origin: 0 0;
  font: 11px/13px Tahoma, "MS Sans Serif", "Microsoft Sans Serif", Geneva, Verdana, sans-serif; -webkit-font-smoothing: none; }
/* the soft base: the window's own colour, blurred and dropped below it, like the extruded boards */
.pwx-glow { position: absolute; left: 6%; right: 6%; top: 18%; bottom: -26px; background: var(--glow); filter: blur(22px); border-radius: 30px; transition: opacity .25s; }
.pwx-off .pwx-glow { opacity: 0; }
.pwx .pw { left: 0; top: 0; background: var(--face); color: var(--ink); border-radius: 8px; box-shadow: inset 0 0 0 2px var(--stroke); }
.pwx .pw-r, .pwx .pw-dlg, .pwx .pw-corner { background: var(--face); color: var(--ink); box-shadow: inset 0 0 0 1px var(--stroke); }
.pwx .pw-s, .pwx .pw-status span { box-shadow: inset 0 0 0 1px var(--stroke); }
.pwx .pw-sw { box-shadow: 0 0 0 1px var(--stroke); }
.pwx .pw-title { left: 2px; top: 2px; right: 2px; height: 20px; border-radius: 6px 6px 0 0; background: var(--title); color: var(--tink); }
.pwx .pw-title b { top: 3px; }
.pwx .pw-b { top: 3px; background: var(--face); border-radius: 3px; box-shadow: none; }
.pwx .pw-dlg { border-radius: 6px; box-shadow: inset 0 0 0 2px var(--stroke), 0 10px 24px rgba(6,41,46,.22); }
.pwx .pw-dlg .pw-title { border-radius: 4px 4px 0 0; }
.pwx .pw-etch { height: 0; border: 0; border-top: 1px solid var(--stroke); }
.pwx .pw-tool { border-radius: 3px; }
.pwx .pw-tool.on, .pwx .pw-b.down, .pwx .pw-btn.down { background: var(--on); box-shadow: inset 0 0 0 1px var(--stroke); color: #06292e; }
.pwx .pw-tool.on svg, .pwx .pw-b.down svg { translate: 0 0; }
.pwx .pw-btn { border-radius: 4px; }
.pwx .pw-def { box-shadow: inset 0 0 0 1px var(--stroke), inset 0 0 0 2px var(--ink); }
.pwx .pw-ws { background: var(--well); }
.pwx .pw-sv, .pwx .pw-sh { background: var(--face2); }
.pwx .pw-ar, .pwx .pw-th { box-shadow: inset 0 0 0 1px var(--stroke); }
.pwx .pw-cur { background: var(--face2); }
.pwx .pw-fg, .pwx .pw-bg { box-shadow: 0 0 0 1px var(--stroke); }
.pwx .pw-bg { background: var(--paper); }
.pwx .pw-esz i { background: var(--ink); }
.pwx .pw-esz i:last-child { outline-color: var(--on); }
.pwx .pw-tb { border-color: var(--ink); }
/* the little Win98 icons pick up the site ink instead of black and grey */
.pwx .pw [stroke="#000"] { stroke: var(--ink); }
.pwx .pw [fill="#000"] { fill: var(--ink); }
.pwx .pw [fill="#c0c0c0"] { fill: var(--face2); }
.pwx .pw-title [stroke="#000"], .pwx .pw-tool.on [stroke="#000"] { stroke: #06292e; }
.pwx .pw-title .pw-b [stroke="#000"] { stroke: var(--ink); }
.pwx .pw-mouse { z-index: 30; }
