/* 60-slide.css */
/* SAD CAT DISCO · /slide-a-meow/ — SLIDE-A-MEOW on CATOS 2003. A fake desktop of the time in our own
   parody: blue title bars, a green start button, a hill under a big sky, big icons, nothing else lying
   around. 256 colours for real: the pictures are reduced to the 216 web-safe colours at build time and
   the desktop's own surface runs through the #sm-256 filter (every colour channel snaps to 00/33/66/99/CC/FF, no
   dither: gradients turn into bands, like back then). Colours below are written as web-safe values.
   The game window is laid out like the fruit-machine puzzle it is inspired by: sunset sky, the board
   between two stone pillars, what each tile pays on the left, the next tiles on the right, the ten cats
   standing on the ground below. Animations only under body.motion-ok. Phones (≤ 700 px): just the game
   window, no desktop chrome. */
.sm-desk{--sm-ui:Tahoma,'MS Sans Serif',Verdana,'Segoe UI',Geneva,sans-serif;--sm-title:'Trebuchet MS',Tahoma,Verdana,sans-serif;--sm-tb:40px;
  --sm-face:#ffffcc;--sm-line:#999966;--sm-hi:#3366cc;--sm-frame:#0033cc;--sm-pink:#ff3399;--sm-cyan:#00ccff;--sm-brown:#663300;
  --sm-in:inset 1px 1px #999966,inset -1px -1px #fff;
  position:relative;isolation:isolate;overflow:hidden;height:calc(100vh - 150px);min-height:0;color:#000;font:12px/1.3 var(--sm-ui);
  background:#3366cc url(/slide-a-meow/img/wallpaper.png) 50% 35%/cover no-repeat;image-rendering:pixelated}
/* only the first level is in 256 colours (owner: the gag is funny for a moment): wallpaper (dithered at build
   time), icons, taskbar, start menu, the desktop's own windows, the browser's chrome and MEWSPACE. The game window
   and the site pages in the browser keep their full colours. */
@media(min-width:701px){
  .sm-desk>:is(.sm-icons,.sm-hatch,.sm-mark,.sm-taskbar,.sm-startmenu,.sm-launch,.sm-win-chat,.sm-win-readme,.sm-win-litter,.sm-win-amp,.sm-modal,.sm-safe),
  .sm-desk .sm-win-web>:is(.sm-titlebar,.sm-menubar,.sm-web-tools,.sm-web-addr,.sm-statusbar),
  .sm-desk .sm-web-local{filter:url(#sm-256)}
}
/* until slide.js has placed them (app.js runs after the first paint), windows and the flower wait unseen: no jump
   from the CSS default spot (layout shift). Without JavaScript, or if it never gets there, they show after 5 s. */
@media(min-width:701px){.sm-desk:not(.sm-ready) :is(.sm-win,.sm-launch){visibility:hidden;animation:smReveal 0s linear 5s forwards!important;animation-play-state:running!important}}
@keyframes smReveal{to{visibility:visible}}
@media(scripting:none){.sm-desk:not(.sm-ready) :is(.sm-win,.sm-launch){visibility:visible;animation:none!important}}
.sm-desk img{image-rendering:auto}
.sm-desk .sm-icon img,.sm-desk .sm-tb-icon,.sm-desk .sm-task img,.sm-desk .sm-sm-ico img{image-rendering:pixelated}
.sm-defs{position:absolute;width:0;height:0;overflow:hidden}

/* ---------- the heading, as the version watermark in the corner */
.sm-mark{position:absolute;right:calc(var(--sm-dock,0px) + 14px);bottom:calc(var(--sm-tb) + 10px);z-index:1;max-width:46%;color:#fff;text-align:right;text-shadow:1px 1px 0 #000;pointer-events:none}
.sm-mark a{pointer-events:auto}
/* MEOWAMP sits at the bottom right (in the corner while the chaos panel is minimised; beside the expanded panel with
   room for its hover peek, --sm-amp-room from slide.js placeWin): the heading moves left of its head */
.sm-desk:has(>.sm-win-amp:not([hidden]))>.sm-mark{right:calc(var(--sm-dock,0px) + 362px + var(--sm-amp-room,0px))}
.sm-desk:has(>.sm-win-amp:not([hidden]))>.sm-mark.is-cornered{right:calc(var(--sm-dock,0px) + 14px);z-index:16}
.sm-crumbs{margin:0 0 2px;font:11px var(--sm-ui)}
.sm-crumbs a{color:#ffff99}
.sm-mark h1{margin:0;font:700 17px/1.2 var(--sm-title);letter-spacing:0}
.sm-mark h1 small{display:block;font:400 12px var(--sm-ui)}
.sm-mark p{margin:2px 0 0;font:11px var(--sm-ui)}

/* ---------- desktop icons: 48 px assets, white labels with a shadow */
.sm-icons{position:absolute;left:8px;top:244px;z-index:3;display:grid;grid-template-columns:repeat(2,94px);grid-auto-rows:80px;gap:0 4px;width:192px;margin:0;padding:0;list-style:none}
/* A loud little adoption box in the desktop's own colour palette: existing cats, one egg, one direct link.
   Its rail is reserved alongside the game; narrow desktops get a shallow shelf above the game instead. */
.sm-hatch{position:absolute;left:10px;top:12px;z-index:4;display:flex;flex-direction:column;align-items:stretch;width:188px;height:218px;padding:0 6px 6px;overflow:hidden;color:#000033;text-decoration:none;background:#ff99ff;border:3px ridge #ffffff;box-shadow:5px 5px 0 #660066;font:12px/1.2 var(--sm-ui);text-align:center;cursor:pointer}
.sm-hatch-bar{display:flex;justify-content:space-between;margin:0 -6px 3px;padding:3px 5px;color:#ffffff;background:#6600cc;font:bold 10px/1 var(--sm-ui)}
.sm-hatch-name{font:900 25px/1 var(--heavy);letter-spacing:.1px;color:#660066;text-shadow:1px 1px 0 #ffffff}
.sm-hatch-name small{font:900 14px var(--sm-ui)}
.sm-hatch-screen{position:relative;display:block;height:87px;flex-shrink:0;margin:4px 0;background:repeating-conic-gradient(#ccffff 0 25%,#99ffff 0 50%) 0 0/8px 8px;border:2px inset #ffffff;border-radius:20px;overflow:hidden}
.sm-hatch-screen img{position:absolute;bottom:-6px;width:80px;height:84px;object-fit:contain;filter:drop-shadow(2px 2px 0 #ffffff)}
.sm-hatch-mido{left:-5px;rotate:-9deg}.sm-hatch-yuna{right:-5px;rotate:9deg}
.sm-hatch-egg{position:absolute;left:50%;top:10px;transform:translateX(-50%);font-size:51px;line-height:1;filter:drop-shadow(2px 3px 0 #cc66cc)}
.sm-hatch-screen i{position:absolute;top:2px;left:30px;color:#ff0066;font:bold 19px/1 var(--sm-ui);font-style:normal;text-shadow:1px 1px 0 #ffffff}
.sm-hatch-screen i:last-child{left:auto;right:27px;top:8px;font-size:14px}
.sm-hatch-copy{font-size:11px;line-height:1.25;margin:0 0 5px}
.sm-hatch-copy b{font-size:10px}
.sm-hatch-play{display:flex;justify-content:center;align-items:center;gap:5px;min-height:29px;margin-top:auto;background:#ffff00;border:3px outset #ffffff;color:#330066;font:bold 12px/1 var(--sm-ui);box-shadow:1px 1px 0 #660066}
.sm-hatch-play b{font-size:19px}
.sm-hatch:hover,.sm-hatch:focus-visible{background:#ffff66;box-shadow:5px 5px 0 #ff0066;outline:2px dotted #000033;outline-offset:2px}
.sm-hatch:hover .sm-hatch-play{background:#99ff00}
.sm-hatch:active .sm-hatch-play{border-style:inset}
@media(min-width:701px) and (max-width:1100px){
 .sm-hatch{left:120px;right:12px;width:auto;height:120px;padding:36px 10px 0 178px;align-items:center}
 .sm-hatch-bar{position:absolute;left:0;top:0;bottom:0;width:22px;margin:0;padding:5px 3px;writing-mode:vertical-rl;rotate:180deg;justify-content:space-around}
 .sm-hatch-name{font-size:25px;white-space:nowrap}.sm-hatch-name small{font-size:16px}
 .sm-hatch-screen{position:absolute;left:27px;top:8px;width:140px;height:94px;margin:0}
 .sm-hatch-screen img{height:90px}.sm-hatch-egg{top:13px}
 .sm-hatch-copy{margin:1px 0;font-size:11px}.sm-hatch-copy br{display:none}.sm-hatch-copy b{margin-left:4px}
 .sm-hatch-play{width:100%;max-width:250px;min-height:28px;margin-top:2px}
 .sm-icons{top:10px;display:flex;flex-direction:column;flex-wrap:nowrap;width:96px;gap:1px}
 .sm-icons .sm-icon{padding:2px 1px;gap:2px;font-size:10px;min-height:63px}
 .sm-icons .sm-icon img{width:32px;height:32px}
}
.sm-icon{display:flex;flex-direction:column;align-items:center;gap:4px;width:94px;padding:4px 2px;background:none;color:#fff;font:12px/1.2 var(--sm-ui);text-align:center;text-decoration:none;cursor:default}
.sm-icon img{width:40px;height:40px}
.sm-icon span{padding:1px 3px;text-shadow:1px 1px 0 #000;overflow-wrap:anywhere}
.sm-icon.is-selected img{filter:brightness(.6) sepia(1) hue-rotate(180deg) saturate(4)}
.sm-icon.is-selected span{background:var(--sm-hi);text-shadow:none;outline:1px dotted #fff}
.sm-desk .sm-icon:focus-visible{outline:1px dotted #fff;outline-offset:0;box-shadow:none}
/* Short desktops keep the bright adoption box in a left rail and all window controls above the taskbar.
   On very flat screens the icon rail scrolls; the puzzle keeps its ordinary minimum cell size. */
@media(min-width:701px){
 .sm-desk.is-short .sm-hatch{left:10px;right:auto;top:8px;width:188px;height:180px;padding:0 6px 5px;align-items:stretch}
 .sm-desk.is-short .sm-hatch-bar{position:static;width:auto;margin:0 -6px 3px;padding:3px 5px;writing-mode:horizontal-tb;rotate:none;justify-content:space-between}
 .sm-desk.is-short .sm-hatch-name{font-size:23px;white-space:normal}.sm-desk.is-short .sm-hatch-name small{font-size:13px}
 .sm-desk.is-short .sm-hatch-screen{position:relative;left:auto;top:auto;width:auto;height:56px;margin:3px 0}
 .sm-desk.is-short .sm-hatch-screen img{height:66px}.sm-desk.is-short .sm-hatch-egg{top:3px;font-size:43px}
 .sm-desk.is-short .sm-hatch-copy{margin:0 0 3px;font-size:10px}.sm-desk.is-short .sm-hatch-copy br{display:block}.sm-desk.is-short .sm-hatch-copy b{margin:0}
 .sm-desk.is-short .sm-hatch-play{width:auto;max-width:none;min-height:26px;margin-top:auto;font-size:11px}
 .sm-desk.is-short .sm-icons{top:200px;display:grid;grid-template-columns:repeat(2,94px);grid-auto-rows:64px;width:192px;gap:0 4px;max-height:calc(100% - var(--sm-tb) - 208px);overflow-y:auto;scrollbar-width:thin}
 .sm-desk.is-short .sm-icon{padding:2px 1px;gap:2px;min-height:0;font-size:10px}.sm-desk.is-short .sm-icon img{width:32px;height:32px}
 .sm-win-game.is-scroll-game{max-height:calc(100% - var(--sm-tb) - 16px)}
 .sm-win-game.is-scroll-game .sm-game{min-height:0;overflow:auto}
}

/* ---------- windows: blue frame, rounded top, title bar with three buttons */
.sm-win{position:absolute;left:0;top:0;z-index:20;display:flex;flex-direction:column;padding:0 3px 3px;background:var(--sm-face);color:#000;font:12px/1.3 var(--sm-ui);
  border:1px solid #000066;border-radius:8px 8px 0 0;box-shadow:inset 0 0 0 3px var(--sm-frame),3px 4px 0 #00000066}
.sm-win:not(.is-active):not(.sm-win-dialog){box-shadow:inset 0 0 0 3px #6699ff,3px 4px 0 #00000066}
.sm-win-chat{width:380px;height:560px}
.sm-win-readme{width:560px;height:500px}
.sm-win-litter{width:480px}
.sm-win.is-dragging{opacity:.94}
.sm-desk .sm-win-game.is-dragging{transform:translateZ(0)}
/* The global music control reserves its own space above the desk. */
.sm-win.is-max{left:0!important;top:0!important;width:100%!important;height:calc(100% - var(--sm-tb))!important;border-radius:0}
.sm-win-game.is-max .sm-game{flex:1;align-content:center;justify-content:center}
.sm-titlebar{display:flex;align-items:center;gap:6px;flex-shrink:0;height:30px;margin:0 -3px;padding:0 5px 0 8px;border-radius:7px 7px 0 0;color:#fff;user-select:none;touch-action:none;cursor:default;
  background:linear-gradient(180deg,#3399ff 0%,#0066ff 14%,#0066ff 52%,#0033cc 86%,#003399 100%);text-shadow:1px 1px 0 #000033}
.sm-win:not(.is-active):not(.sm-win-dialog) .sm-titlebar{background:linear-gradient(180deg,#99ccff 0%,#6699ff 30%,#6699ff 100%);color:#ccccff;text-shadow:none}
.sm-tb-title{min-width:0;margin:0;overflow:hidden;font:700 13px/1 var(--sm-title);white-space:nowrap;text-overflow:ellipsis;letter-spacing:.2px}
.sm-tb-sub{flex:1;min-width:0;overflow:hidden;font:12px/1 var(--sm-ui);white-space:nowrap;text-overflow:ellipsis;opacity:.95}
.sm-tb-icon{width:16px;height:16px;flex-shrink:0}
.sm-tb-btns{display:flex;gap:2px;margin-left:auto;flex-shrink:0}
.sm-tbb{position:relative;display:grid;place-items:center;width:22px;height:22px;padding:0;border:1px solid #fff;border-radius:3px;color:#fff;font:700 17px/1 var(--sm-ui);
  background:linear-gradient(180deg,#66ccff,#3366ff 45%,#0033cc)}
.sm-tbb-min span{position:absolute;left:5px;bottom:5px;width:7px;height:3px;background:#fff}
.sm-tbb-max span{position:absolute;left:5px;top:5px;width:10px;height:10px;border:1px solid #fff;border-top-width:3px}
.sm-tbb-x{margin-left:2px;background:linear-gradient(180deg,#ff9966,#ff3300 50%,#cc3300)}
.sm-tbb-x span{margin-top:-2px}
.sm-tbb:hover{filter:brightness(1.25)}
.sm-tbb:active,.sm-btn:active,.sm-task:active{filter:brightness(.8)}
.sm-desk :is(.sm-tbb,.sm-btn,.sm-task,.sm-start,.sm-tray-btn,.sm-tray-chaos,.sm-menu-btn,.sm-linkbtn):focus-visible{outline:1px dotted #000;outline-offset:-4px;box-shadow:none}
.sm-desk .sm-tbb:focus-visible,.sm-desk .sm-start:focus-visible,.sm-desk .sm-task:focus-visible{outline:2px dotted #fff;outline-offset:-5px}
.sm-desk :is(input,select,textarea):focus-visible{outline:1px dotted #000;outline-offset:1px;box-shadow:none}

/* ---------- menu bar + drop-downs */
.sm-menubar{position:relative;z-index:30;display:flex;align-items:center;flex-shrink:0;padding:1px 2px;background:var(--sm-face);border-bottom:1px solid var(--sm-line)}
.sm-menu{position:relative}
.sm-menu-btn,.sm-menubar-fake span{padding:4px 9px;background:none;color:#000;font:12px var(--sm-ui)}
.sm-menu-btn[aria-expanded=true],.sm-menu-btn:hover{background:var(--sm-hi);color:#fff}
.sm-dropdown{position:absolute;left:0;top:100%;z-index:50;min-width:240px;margin:0;padding:2px;list-style:none;background:#fff;border:1px solid #666666;box-shadow:3px 3px 0 #00000066}
.sm-dropdown button{position:relative;display:flex;width:100%;padding:5px 18px 5px 26px;background:none;color:#000;font:12px var(--sm-ui);text-align:left;white-space:nowrap}
.sm-dropdown button:hover,.sm-desk .sm-dropdown button:focus-visible{background:var(--sm-hi);color:#fff;outline:0;box-shadow:none}
.sm-dropdown [aria-checked=true]::before{content:'✓';position:absolute;left:9px}
.sm-dropdown [role=menuitemradio][aria-checked=true]::before{content:'●'}
.sm-sep{height:0;margin:3px 2px;border-top:1px solid #cccccc}
.sm-menubar-note{margin-left:auto;padding-right:6px;font:10px var(--mono);color:#666633}

/* ---------- the game: a sunset over a stone temple, ten cats on the ground */
.sm-win-game{--cell:56px;--arr:calc(var(--cell) * .6);--side:calc(var(--cell) * 2.3)}
.sm-game{position:relative;display:grid;grid-template-columns:var(--side) auto var(--side);grid-template-rows:auto 1fr auto auto;
  grid-template-areas:"pl board pr" "pay board bub" "pay board q" "tug tug tug";gap:8px 14px;margin:2px 0;padding:12px 14px 10px;color:#000;box-shadow:var(--sm-in);
  background:radial-gradient(ellipse 13% 4% at 16% 12%,#fff 0 94%,transparent),radial-gradient(ellipse 18% 5% at 86% 8%,#fff 0 94%,transparent),
    radial-gradient(circle at 50% 100%,#ffff66 0 calc(var(--cell) * 1.3),#ffcc33 0 calc(var(--cell) * 1.6),transparent 0),
    linear-gradient(180deg,#3399ff 0%,#66ccff 34%,#ccffff 58%,#ffcc99 78%,#ff9966 100%)}

/* players: a score card in each top corner (you left, Mi-Do or the friend right) */
.sm-player{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:6px;background:#fff;border:2px solid #000033;border-radius:6px;box-shadow:2px 3px 0 #00003366}
.sm-player-L{grid-area:pl;border-top:6px solid var(--sm-pink)}
.sm-player-R{grid-area:pr;flex-direction:row-reverse;text-align:right;border-top:6px solid var(--sm-cyan)}
.sm-ava{position:relative;width:calc(var(--cell) * .95);aspect-ratio:1;flex-shrink:0;background:#000;border:3px solid var(--sm-pink)}
.sm-player-R .sm-ava{border-color:var(--sm-cyan)}
.sm-ava img{width:100%;height:100%;object-fit:cover}
.sm-ava-face{position:absolute;right:-9px;bottom:-9px;font-size:max(16px,calc(var(--cell) * .34));line-height:1;filter:drop-shadow(1px 1px 0 #000)}
.sm-player-R .sm-ava-face{right:auto;left:-9px}
.sm-dot{position:absolute;left:-7px;top:-7px;width:15px;height:15px;border:2px solid #000;border-radius:50%;background:#999999}
.sm-player-R .sm-dot{left:auto;right:-7px}
.sm-dot[data-state=online]{background:#33cc33}.sm-dot[data-state=away]{background:#ffcc00}.sm-dot[data-state=offline]{background:#ff3333}
.sm-player.is-turn{box-shadow:0 0 0 3px #ffff00,2px 3px 0 #00003366}
.sm-player.is-winner .sm-ava::after{content:'👑';position:absolute;left:50%;top:-24px;transform:translateX(-50%) rotate(-8deg);font-size:24px}
.sm-pinfo{display:flex;flex-direction:column;align-items:flex-start;gap:2px;flex:1;min-width:0}
.sm-player-R .sm-pinfo{align-items:flex-end}
.sm-pname{max-width:100%;overflow:hidden;font:700 max(13px,calc(var(--cell) * .22))/1.1 var(--sm-title);color:#cc0066;white-space:nowrap;text-overflow:ellipsis}
.sm-player-R .sm-pname{color:#006699}
.sm-pteam{max-width:100%;overflow:hidden;font:max(9px,calc(var(--cell) * .13))/1.2 var(--sm-ui);color:#666666;white-space:nowrap;text-overflow:ellipsis}
.sm-score{display:block;align-self:stretch;min-width:0;margin-top:2px;padding:3px 6px 2px;background:#000033;color:#ff99cc;border:1px solid #000;font:700 max(14px,calc(var(--cell) * .27))/1 var(--mono);text-align:right;font-variant-numeric:tabular-nums}
.sm-player-R .sm-score{color:#66ffff}
.sm-turnflag{visibility:hidden;padding:2px 6px;background:#ffff00;color:#000;border:1px solid #000;font:700 max(9px,calc(var(--cell) * .13)) var(--sm-ui)}
.sm-player.is-turn .sm-turnflag{visibility:visible}
.sm-player.is-thinking .sm-turnflag::after{content:' …'}
body.motion-ok .sm-player.is-turn .sm-turnflag{animation:smBlink calc(1.1s * var(--speed)) steps(1) infinite}

/* Mi-Do's speech bubble, under her card */
.sm-bubble{grid-area:bub;position:relative;align-self:start;max-height:100%;margin:6px 0 0;padding:7px 10px;overflow:hidden;background:#fff;color:#000;border:2px solid #000;border-radius:12px;
  box-shadow:2px 3px 0 #00003366;font:700 max(11px,calc(var(--cell) * .19))/1.3 var(--comic);text-align:left;overflow-wrap:anywhere}
.sm-bubble::before{content:'';position:absolute;right:calc(var(--cell) * .4);top:-9px;width:14px;height:14px;background:#fff;border-left:2px solid #000;border-top:2px solid #000;transform:rotate(45deg)}
/* 7 s after a line the bubble turns into old news: dimmer, dashed (a new line pops back to full) */
.sm-bubble.is-stale{border-style:dashed;color:#666666}
.sm-bubble.is-stale::before{border-style:dashed}

/* what each tile pays (left of the board) */
.sm-pay{grid-area:pay;align-self:start;width:100%;border-collapse:separate;border-spacing:0;background:#ffffcc;border:2px solid var(--sm-brown);border-radius:6px;box-shadow:2px 3px 0 #00003366;
  color:var(--sm-brown);font:700 max(10px,calc(var(--cell) * .15))/1 var(--mono);font-variant-numeric:tabular-nums}
.sm-pay caption{padding:0 0 3px;font:700 max(11px,calc(var(--cell) * .18))/1 var(--sm-title);letter-spacing:2px;color:#fff;text-shadow:1px 1px 0 #000}
.sm-pay th,.sm-pay td{padding:2px 3px;text-align:right}
.sm-pay thead th{font-weight:400;color:#996633}
.sm-pay tbody th{width:calc(var(--cell) * .5);padding:2px 2px 2px 4px;text-align:left}
.sm-pay tbody tr+tr>*{border-top:1px dotted #cc9966}
.sm-pay tbody tr:first-child td{color:#cc0066}
.sm-pay .sm-sym{display:block;width:calc(var(--cell) * .4);height:calc(var(--cell) * .4)}

/* the board: five stone blocks on top, a pillar of five on each side */
.sm-board{grid-area:board;position:relative;justify-self:center;width:calc(var(--cell) * 5 + var(--arr) * 2);height:calc(var(--cell) * 5 + var(--arr))}
.sm-arrow{position:absolute;display:grid;place-items:center;padding:0;border:2px solid var(--sm-brown);border-radius:4px;color:#996633;cursor:default;
  background:linear-gradient(180deg,#ffcc99,#cc9966);box-shadow:inset 2px 2px 0 #ffffcc,inset -2px -2px 0 #996633}
.sm-arrow-glyph{display:flex;flex-direction:column;align-items:center;gap:1px;line-height:1}
.sm-arrow-glyph b{font:700 calc(var(--arr) * .42)/1 var(--sm-ui)}
.sm-arrow-glyph small{font:700 calc(var(--arr) * .26)/1 var(--sm-title);color:var(--sm-brown)}
.sm-arrow-top .sm-arrow-glyph{flex-direction:row;gap:4px}
.sm-arrow-top{left:calc(var(--arr) + var(--i) * var(--cell) + 1px);top:0;width:calc(var(--cell) - 2px);height:calc(var(--arr) - 4px)}
.sm-arrow-left{left:0;top:calc(var(--arr) + var(--i) * var(--cell) + 1px);width:calc(var(--arr) - 4px);height:calc(var(--cell) - 2px)}
.sm-arrow-right{right:0;top:calc(var(--arr) + var(--i) * var(--cell) + 1px);width:calc(var(--arr) - 4px);height:calc(var(--cell) - 2px)}
.sm-arrow-tile{display:none;--cell:calc(var(--arr) * .86)}
.sm-board.is-live .sm-arrow{background:linear-gradient(180deg,#ffff99,#ffcc66);color:#cc3300;cursor:pointer}
.sm-board.is-live .sm-arrow:is(:hover,:focus-visible){background:linear-gradient(180deg,#fff,#ffff99)}
.sm-board.is-live .sm-arrow:is(:hover,:focus-visible,.is-pre) .sm-arrow-tile{display:grid}
.sm-board.is-live .sm-arrow:is(:hover,:focus-visible,.is-pre) .sm-arrow-glyph{display:none}
.sm-board.is-live .sm-arrow.is-pre{background:linear-gradient(180deg,#fff,#ffff99)}
.sm-board.is-live .sm-arrow:active{box-shadow:inset -2px -2px 0 #ffffcc,inset 2px 2px 0 #996633}
.sm-desk .sm-arrow:focus-visible{outline:2px dotted #000;outline-offset:-5px;box-shadow:0 0 0 3px #00ccff}
.sm-arrow.is-used{background:#ffff00}
.sm-arrow.is-bot-pick{background:var(--sm-pink);color:#fff}
.sm-arrow.is-bot-pick .sm-arrow-glyph{display:none}
.sm-arrow.is-bot-pick::after{content:'🐾';font-size:calc(var(--cell) * .34)}
.sm-well{position:absolute;left:var(--arr);top:var(--arr);width:calc(var(--cell) * 5);height:calc(var(--cell) * 5);border-radius:2px;
  background:repeating-linear-gradient(0deg,transparent 0 calc(var(--cell) - 1px),#ffffff66 calc(var(--cell) - 1px) var(--cell)),repeating-linear-gradient(90deg,transparent 0 calc(var(--cell) - 1px),#ffffff66 calc(var(--cell) - 1px) var(--cell)),#99ccff4d;
  box-shadow:0 0 0 2px var(--sm-brown)}
.sm-tiles,.sm-pops{position:absolute;inset:0}
.sm-pops{z-index:4;pointer-events:none}

/* tiles: cream fruit-machine tiles with the symbol on top */
.sm-tile{position:absolute;left:0;top:0;display:grid;place-items:center;width:var(--cell);height:var(--cell)}
.sm-tile::before,.sm-q-chip::before,.sm-mini::before{content:'';position:absolute;inset:max(1px,calc(var(--cell) * .03));border:2px solid #996633;border-radius:max(4px,calc(var(--cell) * .14));
  background:linear-gradient(145deg,#fff 0%,#ffffcc 36%,#ffcc99 100%);box-shadow:inset -2px -3px 0 #cc9966,inset 2px 2px 0 #fff}
.sm-tile svg,.sm-q-chip svg,.sm-mini svg{position:relative;width:76%;height:76%}
.sm-tile.is-match{z-index:2}
.sm-tile.is-match::before{background:#ffff66;border-color:#ff3399;box-shadow:0 0 0 3px #fff,0 0 0 5px #ff3399}
body.motion-ok .sm-tile.is-match svg{animation:smWobble .38s ease-in-out}
.sm-tile.is-out{z-index:3}
.sm-linehl{position:absolute;z-index:1;background:#ffffff4d;box-shadow:inset 0 0 0 3px #ffff00;pointer-events:none}
.sm-pop{position:absolute;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-50%);white-space:nowrap}
.sm-pop b{font:1000 italic calc(var(--cell) * .44)/1 var(--heavy);color:#ffff00;text-shadow:2px 2px 0 #000,-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000}
.sm-pop.is-theirs b{color:#66ffff}
.sm-pop small{padding:1px 4px;background:#000033;color:#ffff00;font:900 9px var(--mono)}
.sm-banner{position:absolute;left:50%;top:50%;z-index:5;margin:0;padding:8px 14px;transform:translate(-50%,-50%) rotate(-6deg);background:#ffff00;color:#000;border:3px solid #000;box-shadow:4px 4px var(--sm-pink);font:1000 italic calc(var(--cell) * .4)/1 var(--heavy);white-space:nowrap;pointer-events:none}
body.motion-ok .sm-banner.is-on{animation:smBanner 1.5s ease-out both}
/* in the board, not in the well: the well is one picture (role=img) for screen readers */
.sm-results-btn{position:absolute;right:calc(var(--arr) + 6px);bottom:6px;z-index:6}

/* NOW / NEXT (right of the board, bottom) */
.sm-queue{grid-area:q;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px 8px;padding:6px 8px;background:#ffffcc;border:2px solid var(--sm-brown);border-radius:6px;box-shadow:2px 3px 0 #00003366;
  font:700 max(10px,calc(var(--cell) * .14)) var(--sm-title);letter-spacing:1px;color:var(--sm-brown)}
.sm-q-now,.sm-q-next{display:flex;gap:4px}
.sm-queue{--qcell:var(--cell)}
/* chips and mini tiles are small tiles: their own --cell sizes the cream face too */
.sm-q-chip,.sm-mini{position:relative;display:grid;place-items:center;flex-shrink:0;width:var(--cell);height:var(--cell)}
.sm-q-now .sm-q-chip{--cell:calc(var(--qcell) * .8)}
.sm-q-next .sm-q-chip{--cell:calc(var(--qcell) * .48)}
.sm-q-chip::after{content:'';position:absolute;left:12%;right:12%;bottom:-5px;height:4px;border-radius:2px;background:var(--sm-pink)}
.sm-q-chip.is-R::after{background:var(--sm-cyan)}
/* NOW: the tile in play, framed in its owner's colour and pulsing */
.sm-q-now .sm-q-chip::before{border:3px solid var(--sm-pink);box-shadow:inset -2px -3px 0 #cc9966,inset 2px 2px 0 #fff,0 0 0 3px #ffff00}
.sm-q-now .sm-q-chip.is-R::before{border-color:var(--sm-cyan)}
body.motion-ok .sm-q-now .sm-q-chip{animation:smPulse calc(1.1s * var(--speed)) ease-in-out infinite}
/* your move: the held tile rides on the mouse pointer (set by slide.js as --paw) */
.sm-game.has-paw,.sm-game.has-paw .sm-board.is-live .sm-arrow{cursor:var(--paw),pointer}

/* the ground: ten cats, five on each side at the start, a flag between the teams */
.sm-tug{position:relative;grid-area:tug;display:flex;align-items:flex-end;gap:8px;height:calc(var(--cell) * .82);padding:0 6px 4px;border-top:3px solid var(--sm-brown);border-radius:4px;
  background:linear-gradient(180deg,#cc9966 0%,#cc9966 40%,#996633 100%)}
.sm-tug-end{min-width:30px;margin-bottom:2px;padding:3px 6px;background:var(--sm-pink);color:#fff;border:2px solid #000;font:700 max(14px,calc(var(--cell) * .24))/1 var(--sm-title);text-align:center}
.sm-tug-r{background:var(--sm-cyan);color:#000}
.sm-tug-field{--split:50%;position:relative;flex:1;height:100%}
.sm-tug-rope{position:absolute;left:0;bottom:2px;width:calc(100% / 13.5 * 3.5);height:72%}
.sm-tug-rope::before{content:'';position:absolute;left:50%;bottom:0;width:3px;height:100%;background:var(--sm-brown)}
.sm-tug-rope::after{content:'';position:absolute;left:calc(50% + 3px);top:0;width:calc(var(--cell) * .32);height:calc(var(--cell) * .22);background:#ffff00;border:1px solid #000;clip-path:polygon(0 0,100% 50%,0 100%)}
.sm-cat{position:absolute;left:0;bottom:0;width:calc(100% / 13.5);height:100%;display:grid;place-items:end center;--fur:#999999;color:var(--sm-pink)}
.sm-cat:nth-child(even){--fur:#ffcc66}
.sm-cat[data-side=R]{color:var(--sm-cyan)}
.sm-cat i{display:block;width:min(100%,calc(var(--cell) * .62));aspect-ratio:1;font-style:normal}
.sm-cat svg{display:block;width:100%;height:100%}
.sm-cat[data-side=R] i,.sm-cat.to-L i{transform:scaleX(-1)}
.sm-cat.to-R i{transform:none}
body.motion-ok .sm-cat,body.motion-ok .sm-tug-rope{transition:transform calc(.95s * var(--speed)) ease-in-out}
body.motion-ok .sm-cat.is-walking i{animation:smWalk .22s steps(2) infinite}
.sm-cat-win{position:absolute;left:48px;bottom:calc(100% - 8px);z-index:4;padding:3px 8px;background:#ffff00;color:#990066;border:2px solid #000033;box-shadow:3px 3px 0 #ff3399;font:900 17px/1.1 var(--sm-title);rotate:-5deg;pointer-events:none}
body.motion-ok .sm-cat-win:not([hidden]){animation:smCatWinStamp .32s cubic-bezier(.2,.8,.3,1.3) both}
body.motion-ok .sm-cat.is-celebrating i{animation:smCatWinHop .5s .55s ease-out both}
@keyframes smCatWinStamp{from{scale:.5;opacity:0}to{scale:1;opacity:1}}
@keyframes smCatWinHop{0%,100%{translate:0 0}45%{translate:0 -16px}70%{translate:0 -4px}}

/* ---------- the screens over the board: menu, invite, join, results */
.sm-screen{position:absolute;inset:0;z-index:8;display:none;padding:10px;overflow:auto;background:#00003366;container-type:size}   /* size: the start card below */
.sm-screen.is-on{display:grid;place-items:center}
.sm-panel{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:min(100%,500px);padding:16px 18px;background:var(--sm-face);color:#000;text-align:center;border:2px solid var(--sm-frame);border-radius:6px;box-shadow:4px 5px 0 #00000066}
.sm-panel h3{margin:0;font:700 20px/1.1 var(--sm-title);color:#003399}
.sm-panel p{margin:0}
.sm-logo{display:flex;align-items:center;justify-content:center;gap:10px;font:1000 italic clamp(26px,calc(var(--cell) * .58),44px)/1 var(--heavy);letter-spacing:.5px;word-spacing:.12em;color:#ff3399;text-shadow:2px 2px 0 #000}
.sm-logo-tiles{display:flex;gap:2px}
.sm-logo .sm-mini{--cell:44px;width:40px;height:40px}
.sm-tagline{font:700 italic 14px var(--comic);color:#003399}
/* the start card (15.11., the owner): PLAY WITH A FRIEND first, a big sticker (about twice the bot button), a little
   tilted and over the card's edges, its line under it; PLAY VS MI-DO the smaller second button with her line */
.sm-choices{display:flex;flex-direction:column;align-items:stretch;gap:5px}
.sm-choice-note{font:700 italic 13px/1.3 var(--comic);color:#003399}
.sm-choices .sm-big-bot{align-self:center;width:min(100%,300px);min-height:56px;margin-top:8px;padding:7px 12px 7px 8px}
.sm-big-bot img{width:40px;height:40px}
.sm-big-bot b{font-size:15px}
.sm-big{display:flex;align-items:center;gap:10px;min-height:68px;padding:10px;color:#fff;border:1px solid #003300;border-radius:6px;box-shadow:2px 3px 0 #00000066;font:12px var(--sm-ui);text-align:left;cursor:pointer;text-shadow:1px 1px 0 #000;
  background:linear-gradient(180deg,#99ff66 0%,#66cc33 30%,#339900 100%)}
.sm-big b{display:block;font:700 17px/1.05 var(--sm-title)}
.sm-big small{display:block;margin-top:3px;font:11px/1.2 var(--sm-ui)}
.sm-big img{width:48px;height:48px;flex-shrink:0;object-fit:cover;border:2px solid #fff}
.sm-big-emoji{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;font-size:32px;line-height:1}
.sm-big-emoji .sm-flower{width:40px;height:40px}
.sm-big-invite,.sm-big-join{border-color:#000066;background:linear-gradient(180deg,#99ccff 0%,#3399ff 30%,#0033cc 100%)}
.sm-big:hover{filter:brightness(1.12)}
.sm-desk .sm-big:focus-visible{outline:2px dotted #fff;outline-offset:-6px;box-shadow:0 0 0 3px #000}
/* the friend sticker (start card and the result of a round against Mi-Do): hot pink with a white die-cut edge, tilted.
   It glows softly in every mode (also LESS CHAOS); the little wiggle only with motion on. */
.sm-sticker{display:flex;align-items:center;justify-content:center;gap:12px;min-height:84px;margin:8px -26px 4px;padding:12px 18px;color:#fff;text-align:left;cursor:pointer;
  background:linear-gradient(180deg,#ff99dd 0%,#ff3399 45%,#cc0077 100%);border:4px solid #fff;border-radius:16px;rotate:-2deg;text-shadow:2px 2px 0 #660033;
  box-shadow:0 0 0 2px #000033,5px 6px 0 #000033;animation:smStickerGlow 2.6s ease-in-out infinite}
.sm-sticker b{display:block;font:700 clamp(22px,6.2vw,30px)/1.05 var(--sm-title);letter-spacing:.5px}
.sm-sticker small{display:block;margin-bottom:3px;font:700 italic 14px/1.2 var(--comic);color:#ffff66}
.sm-sticker .sm-big-emoji{width:52px;height:52px}.sm-sticker .sm-big-emoji .sm-flower{width:50px;height:50px}
.sm-sticker:hover{filter:brightness(1.1)}
.sm-desk .sm-sticker:focus-visible{outline:3px dotted #fff;outline-offset:-9px}
body.motion-ok .sm-sticker{animation:smStickerGlow 2.6s ease-in-out infinite,smStickerWiggle 5s ease-in-out infinite}
.sm-over-friend{margin:4px 0 6px}
@keyframes smStickerGlow{50%{box-shadow:0 0 0 2px #000033,5px 6px 0 #000033,0 0 22px 6px #ffcc00}}
@keyframes smStickerWiggle{0%,14%,100%{rotate:-2deg}4%{rotate:-3.5deg}9%{rotate:-.8deg}}
/* a short game window (1280×720 and the like): the two choices side by side, each line under its button, so the whole
   card fits without scrolling (the sticker still the bigger one and over the left edge) */
@container (max-height:410px) and (min-width:440px){
  .sm-choices{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:6px 14px;align-items:center}
  .sm-choices .sm-sticker{grid-area:1/1;min-height:84px;margin:4px 0 0 -26px;padding:8px 12px;gap:8px}
  .sm-choices .sm-sticker b{font-size:26px}
  .sm-choices .sm-sticker .sm-big-emoji{width:44px;height:44px}.sm-choices .sm-sticker .sm-big-emoji .sm-flower{width:42px;height:42px}
  .sm-choices .sm-big-bot{grid-area:1/2;width:auto;margin:4px 0 0}
  .sm-choice-note{align-self:start;font-size:12px}
  #sm-friend-note{grid-area:2/1}#sm-bot-note{grid-area:2/2}
}
/* the start steps: 1 your name, 2 Mi-Do's mood (or the invite link) */
.sm-step-h{display:flex;align-items:center;justify-content:center;gap:9px;font:700 21px/1.1 var(--sm-title);color:#003399}
.sm-step-no{display:inline-grid;place-items:center;width:28px;height:28px;flex-shrink:0;border:2px solid #000;border-radius:50%;background:#ff3399;color:#fff;font:700 16px/1 var(--sm-title)}
.sm-step-note{font:700 italic 13px var(--comic);color:#003399}
.sm-nick{display:grid;gap:5px;text-align:left;font:700 12px var(--sm-ui)}
.sm-nick>span{display:flex;align-items:center;gap:6px}
.sm-nick .sm-step-no{width:20px;height:20px;font-size:12px}
.sm-nick input{min-width:0;min-height:42px;padding:6px 10px;background:#fff;color:#000;border:3px solid #ff3399;border-radius:3px;font:700 19px var(--sm-title)}
body.motion-ok .sm-nick input:not(:focus):not(.is-bad){animation:smNickBlink 1.1s steps(1) infinite}
.sm-nick input.is-bad{border-color:#ff0000;background:#ffcccc}
.sm-moods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sm-mood{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:8px 6px;color:#000;border:2px solid #003366;border-radius:6px;font:11px/1.2 var(--sm-ui);cursor:pointer;
  background:linear-gradient(180deg,#fff 0%,#ffffcc 70%,#cccc99 100%)}
.sm-mood img{width:64px;height:64px;object-fit:cover;border:2px solid #000}
.sm-mood b{font:700 14px/1.1 var(--sm-title)}
.sm-mood small{color:#666666}
.sm-mood.is-current{border-color:#ff3399;box-shadow:0 0 0 3px #ffcc00}
.sm-mood:hover{box-shadow:0 0 0 3px #ffcc33}
.sm-desk .sm-mood:focus-visible{outline:2px dotted #000;outline-offset:-6px}
.sm-check{display:flex;align-items:center;gap:6px;cursor:pointer}
.sm-field{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:6px;text-align:left}
.sm-field input,.sm-field select,.sm-linkbox input,.sm-chat-form textarea{min-width:0;min-height:28px;padding:4px 6px;background:#fff;color:#000;border:1px solid #6699cc;border-radius:0;font:12px var(--sm-ui)}
.sm-btn{min-height:30px;padding:5px 14px;color:#000;border:1px solid #003366;border-radius:3px;font:12px var(--sm-ui);background:linear-gradient(180deg,#fff 0%,#ffffcc 70%,#cccc99 100%)}
.sm-btn:hover{box-shadow:inset 0 0 0 2px #ffcc33}
.sm-btn-hot{font-weight:700;background:linear-gradient(180deg,#ffffcc,#ffff66 60%,#ffcc00)}
.sm-btn-sm{min-height:26px;padding:3px 8px;font-size:11px}
.sm-linkbtn{padding:4px;background:none;color:#0033cc;font:12px var(--sm-ui);text-decoration:underline}
.sm-over-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.sm-linkbox{display:flex;gap:6px}
.sm-linkbox input{flex:1;font:12px var(--mono)}
.sm-wait{font:700 italic 14px var(--comic);color:#003399}
.sm-pacer{display:inline-block}
body.motion-ok .sm-pacer{animation:smPace calc(2.4s * var(--speed)) linear infinite}
body.motion-ok .sm-dots i{animation:smBlink 1.2s steps(1) infinite}
body.motion-ok .sm-dots i:nth-child(2){animation-delay:.2s}body.motion-ok .sm-dots i:nth-child(3){animation-delay:.4s}
.sm-dots i{font-style:normal}
.sm-fine{font:11px/1.35 var(--sm-ui);color:#333333}
.sm-err{min-height:1em;font:700 12px/1.35 var(--sm-ui);color:#cc0033}
.sm-panel-over{background:#000033;color:#fff;border-color:#ffff00}
.sm-mission{font:1000 italic clamp(30px,calc(var(--cell) * .74),54px)/1 var(--heavy);letter-spacing:.5px;word-spacing:.12em}
.sm-mission.is-won{color:#99ff00;text-shadow:3px 3px 0 #000}
.sm-mission.is-lost{color:#ff3366;text-shadow:3px 3px 0 #000}
.sm-mission.is-draw{color:#ffff00;text-shadow:3px 3px 0 #000}
.sm-mission-sub{font:700 12px/1.4 var(--mono);color:#ffccff}
.sm-stats{display:grid;grid-template-columns:1fr auto auto;gap:3px 14px;margin:0;font:12px var(--mono);text-align:left}
.sm-stats dt{color:#ccccff}
.sm-stats dd{margin:0;text-align:right;font-weight:700}
.sm-stats .sm-stats-h{color:#ffff00;font-weight:900}
.sm-rematch-note{min-height:1em;font:700 italic 12px var(--comic);color:#99ff00}

/* ---------- status bar */
.sm-statusbar{display:flex;gap:2px;flex-shrink:0;margin-top:1px;padding-top:2px;border-top:1px solid var(--sm-line)}
.sm-statusbar>span{padding:2px 7px;font:11px/1.45 var(--sm-ui);white-space:nowrap;border-right:1px solid var(--sm-line)}
.sm-sb-main{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.sm-statusbar .is-low{background:#ff3333;color:#fff}
.sm-statusbar .is-hot{background:var(--sm-pink);color:#fff}
.sm-net-bad .sm-sb-main{color:#cc0033}

/* ---------- I SEEK MEW */
.sm-chat{display:flex;flex-direction:column;flex:1;gap:6px;min-height:0;padding:6px 3px 3px}
.sm-contact{display:flex;align-items:center;gap:9px;padding:6px;background:linear-gradient(180deg,#fff,#ccffcc);border:1px solid #66cc66;border-radius:4px}
.sm-contact-ava{width:52px;height:52px;object-fit:cover;border:2px solid #000}
.sm-contact-info{display:flex;flex-direction:column;flex:1;min-width:0}
.sm-contact-info b{overflow:hidden;font:700 14px var(--sm-title);white-space:nowrap;text-overflow:ellipsis}
.sm-contact-info small{font:11px var(--sm-ui);color:#555555}
.sm-presence{display:inline-flex;align-items:center;gap:4px;font:11px var(--sm-ui);color:#006600}
.sm-presence i{width:10px;height:10px;border:1px solid #000;border-radius:50%;background:#33cc33}
.sm-presence[data-state=away]{color:#996600}.sm-presence[data-state=away] i{background:#ffcc00}
.sm-presence[data-state=offline]{color:#cc0033}.sm-presence[data-state=offline] i{background:#ff3333}
.sm-presence[data-state=waiting]{color:#666666}.sm-presence[data-state=waiting] i{background:#999999}
.sm-uin{align-self:flex-start;font:10px var(--mono);color:#666666}
.sm-log{flex:1;min-height:90px;overflow-y:auto;padding:7px;background:#fff;color:#000;border:1px solid #6699cc;font:13px/1.4 var(--sm-ui)}
.sm-msg{margin:0 0 7px}
.sm-msg-h{font-size:11px}
.sm-msg-me .sm-msg-h b{color:#0033cc}
.sm-msg-them .sm-msg-h b{color:#cc0066}
.sm-msg-t{margin-left:2px;overflow-wrap:anywhere}
.sm-msg-sys{font:italic 11px var(--sm-ui);color:#666666;text-align:center}
.sm-typing{min-height:15px;font:italic 11px var(--sm-ui);color:#003399}
.sm-chat-tools{display:flex;align-items:center;gap:4px}
.sm-chat-hint{margin-left:auto;font:10px var(--sm-ui);color:#666633}
.sm-btn-nudge{background:linear-gradient(180deg,#fff,#ffccff 70%,#ff99cc)}
.sm-emo{display:flex;flex-wrap:wrap;gap:2px;padding:4px;background:#fff;border:1px solid #6699cc}
.sm-emo button{width:32px;height:32px;padding:0;background:none;font-size:19px}
.sm-emo button:hover{background:#ccccff}
/* computers: the emoticons pop up over the conversation, right above their button's row (slide.js sets --sm-emo-b
   when they open), so the text box and SEND never move: reachable in a messenger of any height, also the short one
   above the chaos panel (15.11.; its conversation may get that short too). Phones keep them in the flow (below). */
@media(min-width:701px){
 .sm-chat{position:relative}
 .sm-chat .sm-emo{position:absolute;left:3px;right:3px;bottom:var(--sm-emo-b,92px);z-index:2;max-height:calc(100% - var(--sm-emo-b,92px) - 4px);overflow-y:auto;box-shadow:2px 2px 0 #00000066}
 .sm-desk.sm-dock-open .sm-win-chat.is-max .sm-emo{right:var(--sm-dock)}
 .sm-desk .sm-log{min-height:40px}
}
/* The local sticker shelf fits inside the messenger; sending still uses the same text-only relay. */
.sm-chat-stickers{display:flex;flex-wrap:wrap;gap:4px;flex-basis:100%;border-top:1px solid #ccccff;padding-top:4px}
.sm-chat-stickers button{width:56px;height:56px}
.sm-chat-stickers img{display:block;width:52px;height:52px;object-fit:contain}
.sm-msg-sticker{display:block;width:96px;height:96px;object-fit:contain}
.sm-win-meme{margin:3px 0 8px;font:700 12px var(--sm-ui)}
.sm-win-meme a{color:#ffff66}
.sm-files td:first-child{overflow-wrap:anywhere}
.sm-chat-form{display:flex;gap:5px}
.sm-chat-form textarea{flex:1;height:52px;resize:none;font-size:13px}
.sm-send{min-width:70px;font-weight:700;background:linear-gradient(180deg,#ccffcc,#66cc66 60%,#339933);color:#fff;text-shadow:1px 1px 0 #003300;border-color:#003300}

/* ---------- README.TXT, Litter Box, message boxes, shut down */
.sm-notepad{flex:1;margin:0;padding:8px;overflow:auto;background:#fff;color:#000;font:13px/1.4 'Lucida Console','Courier New',monospace;white-space:pre-wrap;user-select:text;border:1px solid #6699cc}
.sm-litter{display:flex;flex-direction:column;gap:10px;padding:8px;background:#fff;border:1px solid #6699cc;margin-top:3px}
.sm-files{width:100%;border-collapse:collapse;font:12px var(--sm-ui)}
.sm-files th{padding:3px 6px;background:linear-gradient(180deg,#fff,#ffffcc);border:1px solid var(--sm-line);font-weight:400;text-align:left}
.sm-files td{padding:3px 6px}
.sm-modal{position:absolute;inset:0;z-index:9500;display:grid;place-items:center;padding:16px;background:#00003333}
.sm-win-dialog{position:relative;width:min(400px,100%)}
.sm-dlg-body{display:flex;align-items:flex-start;gap:12px;padding:14px 12px 8px}
.sm-dlg-icon{font-size:30px;line-height:1}
.sm-dlg-body p{margin:0;font:12px/1.45 var(--sm-ui)}
.sm-dlg-extra{display:grid;gap:4px;margin-top:8px}
.sm-radio{display:flex;align-items:center;gap:6px}
.sm-dlg-btns{padding:6px 0 8px}
.sm-dlg-btns .sm-btn{min-width:80px}
.sm-safe{position:absolute;inset:0;z-index:9800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:20px;background:#000;color:#ff9900;text-align:center;cursor:pointer}
.sm-safe p{margin:0;font:700 clamp(20px,3vw,34px)/1.25 var(--sm-ui)}
.sm-safe small{font:12px var(--sm-ui);color:#cc6600}

/* ---------- the I SEEK MEW launcher: the big flower where the chat window goes. Click: the petals light up
   one by one (connecting…) while the startup sound plays, then the chat opens in its place. */
.sm-launch>*{pointer-events:auto}
.sm-launch{position:absolute;left:0;top:0;z-index:16;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:4px;width:240px;padding:8px 6px 10px;background:none;color:#fff;
  font:12px/1.25 var(--sm-ui);text-align:center;text-shadow:1px 1px 0 #000;cursor:pointer}
.sm-launch-float{display:block;width:180px;height:180px}
.sm-launch-flower{display:block;width:180px;height:180px;filter:drop-shadow(3px 4px 0 #00000066)}
.sm-launch b{font:700 21px/1.1 var(--sm-title);letter-spacing:.5px}
.sm-launch small{padding:2px 8px;background:#003399;border:1px solid #fff;border-radius:3px;font:11px var(--sm-ui)}
.sm-launch.has-news small{background:#ff3300}
.sm-launch:hover .sm-launch-float{transform:scale(1.04)}
.sm-desk .sm-launch:focus-visible{outline:2px dotted #fff;outline-offset:2px;box-shadow:none}
/* the float sits on the HTML wrapper: there the graphics card moves it (on the SVG itself every frame was a
   restyle and repaint); the hover zoom sits there too (separate transform, the float animates translate) */
body.motion-ok .sm-launch:not(.is-connecting) .sm-launch-float{animation:smFloat calc(3.2s * var(--speed)) ease-in-out infinite}
/* offline (not started yet, or closed): grey petals, only the red one keeps its colour */
.sm-launch:not(.is-connecting) .sm-petal:not(.is-red)>ellipse:first-child{fill:#999999}
.sm-launch:not(.is-connecting) .sm-petal:not(.is-red) .sm-petal-hl{fill:#cccccc}
/* connecting: a block progress bar under the flower, filling while the petals light up */
.sm-launch-bar{display:none;width:176px;height:18px;padding:2px;background:#fff;border:2px solid #003399;box-shadow:inset 1px 1px #999966}
.sm-launch-bar i{display:block;width:100%;height:100%;background:repeating-linear-gradient(90deg,#33cc33 0 10px,transparent 10px 12px)}
.sm-launch.is-connecting .sm-launch-bar{display:block}
body.motion-ok .sm-launch.is-connecting .sm-launch-bar i{animation:smLoad 1.5s steps(14,end) both}
.sm-launch.is-connecting{cursor:progress}
.sm-launch.is-connecting .sm-petal>ellipse:first-child{fill:#999999}
.sm-launch.is-connecting .sm-petal-hl{fill:#cccccc}
body.motion-ok .sm-launch.is-connecting .sm-petal>ellipse:first-child{animation:smPetal .22s linear forwards;animation-delay:calc(var(--k) * .2s)}
body.motion-ok .sm-launch.is-connecting .sm-petal-hl{animation:smPetalHl .22s linear forwards;animation-delay:calc(var(--k) * .2s)}

/* ---------- Internet Explurrer: the desktop's browser (a frame of this site, or MEWSPACE) */
.sm-win-web{width:960px;height:640px}
.sm-web-brand{margin-left:auto;padding:0 8px;font:italic 700 15px/1 var(--sm-title);color:#0066ff}
.sm-web-brand i{font-style:normal;color:#ff3399}
.sm-web-tools{display:flex;align-items:center;gap:3px;flex-shrink:0;padding:3px 2px;background:var(--sm-face);border-bottom:1px solid var(--sm-line)}
.sm-webbtn{min-height:28px;padding:3px 9px;background:none;color:#000;border:1px solid transparent;border-radius:3px;font:12px var(--sm-ui)}
.sm-webbtn:hover:not(:disabled){border-color:#999966;background:linear-gradient(180deg,#fff,#ffffcc)}
.sm-webbtn:disabled{color:#999999;cursor:default}
.sm-webbtn[data-sm-web="back"] span,.sm-webbtn[data-sm-web="fwd"] span{color:#339933;font-weight:700}
.sm-webbtn[data-sm-web="real"]{margin-left:auto;color:#003399;text-decoration:underline}
.sm-web-sep{width:1px;height:22px;margin:0 3px;background:var(--sm-line)}
.sm-web-addr{display:flex;align-items:center;gap:6px;flex-shrink:0;padding:3px 4px;background:var(--sm-face);border-bottom:1px solid var(--sm-line);font:12px var(--sm-ui);color:#666666}
/* the browser's chrome goes through the 256 filter piece by piece (the page in it does not): each piece paints its own
   ground, else the filter's hard alpha would eat thin letters */
.sm-win-web>.sm-statusbar{background:var(--sm-face)}
.sm-web-addr input{flex:1;min-width:0;min-height:24px;padding:2px 6px;background:#fff;color:#000;border:1px solid #6699cc;font:12px var(--sm-ui)}
.sm-web-view{position:relative;flex:1;min-height:0;margin-top:3px;background:#fff;border:1px solid #6699cc}
.sm-web-view iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.sm-web-local{position:absolute;inset:0;overflow:auto;background:#fff}
.sm-web-error{max-width:560px;padding:24px 28px;font:13px/1.5 Verdana,var(--sm-ui);color:#000}
.sm-web-error h3{margin:0 0 12px;font:700 18px Verdana,var(--sm-ui)}
.sm-web-error hr{border:0;border-top:1px solid #999999}

/* reality breaks (the desktop icon "The Purrrooms", on the way in: a short flash) */
body.sm-glitch main{animation:smGlitch .12s steps(2) infinite}
body.sm-glitch::after{content:'';position:fixed;inset:0;z-index:19999;pointer-events:none;background:repeating-linear-gradient(0deg,#00000066 0 2px,transparent 2px 4px),linear-gradient(90deg,#ff00ff33,#00ffff33)}
@keyframes smGlitch{0%{translate:-6px 0;filter:hue-rotate(90deg) saturate(3)}50%{translate:8px -3px;filter:invert(1)}100%{translate:-2px 4px;filter:contrast(3)}}
/* this page: MEOWAMP is the chaos dock (on computers) */
@media(min-width:701px){body[data-page="slide"] .chaos-dock{display:none!important}}
/* ... but the site's yellow chaos panel (#chaos-ad, shown site-wide by 99-ux-shell.css) stays on this page as well
   (the owner, 15.11.: nothing is hidden). The visitor can minimise it himself: slide.js puts the small button on the
   panel on this page only; minimised, the panel waits as a button with the chaos value in the taskbar tray
   (.sm-tray-chaos below). Phones keep their dock as it is. */
@media(min-width:701px){body[data-page="slide"] #chaos-ad.sm-dock-off{display:none!important}}
.chaos-dock .sm-dock-min{position:absolute;top:0;right:0;z-index:3;display:grid;place-items:center;width:22px;height:20px;padding:0;border:1px solid #fff;border-radius:3px;
  background:linear-gradient(180deg,#66ccff,#3366ff 45%,#0033cc);box-shadow:1px 1px 0 #00000066}
.chaos-dock .sm-dock-min span{position:absolute;left:5px;bottom:4px;width:9px;height:3px;background:#fff}
.chaos-dock .sm-dock-min:hover{filter:brightness(1.25)}
@media(max-width:700px){.chaos-dock .sm-dock-min{display:none}}
/* a maximised window reaches under the expanded panel (the desk's bottom right corner): the game (board, NOW/NEXT
   tiles, its screens, the MOVE counter in the status bar) and the messenger (SEND) keep out of its column
   (--sm-dock, slide.js layout; fitGame sizes the maximised game for the narrower room) */
.sm-desk.sm-dock-open .sm-win-game.is-max :is(.sm-game,.sm-statusbar),.sm-desk.sm-dock-open .sm-win-chat.is-max .sm-chat{padding-right:var(--sm-dock)}
.sm-desk.sm-dock-open .sm-win-game.is-max .sm-screen{padding-right:calc(var(--sm-dock) + 10px)}

/* ---------- start menu + taskbar */
.sm-startmenu{position:absolute;left:0;bottom:var(--sm-tb);z-index:9000;display:flex;flex-direction:column;width:min(460px,calc(100% - 8px));overflow:hidden;background:#fff;border:1px solid #003399;border-radius:8px 8px 0 0;box-shadow:3px 3px 0 #00000066}
.sm-sm-head{display:flex;align-items:center;gap:10px;padding:8px 10px;background:linear-gradient(180deg,#3399ff,#0066ff 30%,#0033cc);color:#fff;font:700 16px var(--sm-title);text-shadow:1px 1px 0 #000033;border-bottom:2px solid #ff9900}
.sm-sm-head img{width:44px;height:44px;object-fit:cover;border:2px solid #fff;border-radius:4px}
.sm-sm-body{display:grid;grid-template-columns:1fr 1fr}
.sm-startmenu ul{margin:0;padding:6px 4px;list-style:none}
.sm-sm-right{background:#ccccff;border-left:1px solid #9999cc}
.sm-sm-foot{grid-column:1/-1;display:flex;justify-content:flex-end;padding:4px 8px;background:linear-gradient(180deg,#3399ff,#0066ff 30%,#0033cc)}
.sm-startmenu [role=menuitem]{display:flex;align-items:center;gap:9px;width:100%;padding:5px 8px;background:none;color:#000;font:12px var(--sm-ui);text-align:left;text-decoration:none;white-space:nowrap;border-radius:2px}
.sm-startmenu [role=menuitem] b{font-weight:700}
.sm-startmenu [role=menuitem] small{display:block;color:#666666;font-size:11px}
.sm-sm-left [role=menuitem]>span:last-child{display:flex;flex-direction:column}
.sm-startmenu [role=menuitem]:hover,.sm-desk .sm-startmenu [role=menuitem]:focus-visible{background:var(--sm-hi);color:#fff;outline:0;box-shadow:none}
.sm-startmenu [role=menuitem]:hover small,.sm-desk .sm-startmenu [role=menuitem]:focus-visible small{color:#ccccff}
.sm-sm-foot [role=menuitem]{width:auto;color:#fff;text-shadow:1px 1px 0 #000033}
.sm-sm-ico{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;font-size:20px;text-align:center}
.sm-sm-right .sm-sm-ico{width:24px;height:24px;font-size:17px}
.sm-sm-ico img{width:100%;height:100%}
.sm-sm-ico .sm-flower{width:26px;height:26px}
.sm-power{display:block;width:22px;height:22px;border:1px solid #fff;border-radius:4px;background:radial-gradient(circle at 50% 55%,transparent 0 4px,#fff 0 6px,transparent 0) no-repeat,linear-gradient(180deg,#ff9966,#ff3300 55%,#cc3300)}
.sm-taskbar{position:absolute;left:0;right:0;bottom:0;z-index:9001;display:flex;align-items:center;gap:6px;height:var(--sm-tb);padding:0 0 0 0;
  background:linear-gradient(180deg,#3399ff 0%,#0066ff 10%,#0066ff 45%,#0033cc 90%,#003399 100%);border-top:1px solid #000066}
.sm-start{display:flex;align-items:center;gap:6px;flex-shrink:0;height:100%;padding:0 22px 0 10px;color:#fff;font:italic 700 21px/1 var(--sm-title);text-shadow:1px 1px 1px #003300;border-radius:0 14px 14px 0;
  background:linear-gradient(180deg,#99ff99 0%,#33cc33 18%,#339933 60%,#336633 100%);box-shadow:inset -1px 0 0 #003300}
.sm-start b{font-weight:700}
.sm-start .sm-flower{width:24px;height:24px;filter:drop-shadow(1px 1px 0 #003300)}
.sm-start.is-pressed{background:linear-gradient(180deg,#336633,#339933 50%,#33cc33)}
.sm-tasks{display:flex;flex:1;gap:3px;min-width:0;overflow:hidden}
.sm-task{display:flex;align-items:center;gap:6px;flex:0 1 180px;min-width:0;height:30px;padding:0 8px;color:#fff;border:1px solid #003399;border-radius:3px;font:12px var(--sm-ui);text-align:left;
  background:linear-gradient(180deg,#66ccff,#3399ff 40%,#0066ff)}
.sm-task span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sm-task[aria-pressed=true]{font-weight:700;background:linear-gradient(180deg,#003399,#0033cc 60%,#0066ff);box-shadow:inset 1px 1px 0 #000033}
body.motion-ok .sm-task.is-flash{animation:smFlash 1s steps(1) infinite}
.sm-tray{display:flex;align-items:center;gap:4px;flex-shrink:0;height:100%;padding:0 10px;background:linear-gradient(180deg,#66ccff,#0099ff 20%,#0066cc);border-left:1px solid #000066;box-shadow:inset 1px 0 0 #66ccff}
.sm-tray-btn{position:relative;display:grid;place-items:center;width:28px;height:28px;padding:0;background:none;font-size:16px}
.sm-tray-btn .sm-flower{width:20px;height:20px}
/* the minimised chaos panel: a yellow button with the chaos value next to the clock (a click brings the panel back) */
.sm-tray-chaos{height:22px;padding:0 6px;border:1px solid #000066;border-radius:3px;background:linear-gradient(180deg,#ffff99,#ffff00 45%,#ffcc00);color:#000;font:700 11px/1 var(--sm-ui);white-space:nowrap}
.sm-tray-chaos:hover{filter:brightness(1.1)}
.sm-badge{position:absolute;right:-6px;top:-5px;min-width:15px;height:15px;padding:0 3px;border-radius:8px;background:#ff0033;color:#fff;font:700 10px/15px var(--sm-ui);text-align:center}
.sm-clock{padding-left:4px;color:#fff;font:12px var(--sm-ui);white-space:nowrap}
.sm-dockspace{flex-shrink:0;width:var(--sm-dock,0px);height:100%}

/* ---------- the "PLAY SLIDE-A-MEOW" sticker on the home page (side quests) and the arcade link on /vi/ */
.sm-promo-tiles .t-fish{--t:#25c6e0}.sm-promo-tiles .t-yarn{--t:#ff63d0}.sm-promo-tiles .t-paw{--t:#baff00}
.sm-promo{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 14px 14px;color:#11061e;text-align:center;text-decoration:none;
  background:repeating-linear-gradient(-45deg,#ffed00 0 14px,#fff36b 14px 28px);border:4px outset #fff58a;box-shadow:6px 6px var(--pink),0 0 24px #ffed0066;transform:rotate(2.5deg);transition:transform .15s}
.side-quests .sm-promo{grid-column:1/-1}
.sm-promo:hover{transform:rotate(0) scale(1.03)}
.sm-promo b{font:1000 italic clamp(22px,2.4vw,32px)/1 var(--heavy);letter-spacing:.3px;word-spacing:.12em;color:var(--pink);text-shadow:2px 2px 0 #11061e}
.sm-promo small{font:900 10px/1.3 var(--mono);letter-spacing:.5px}
.sm-promo-tiles{display:flex;gap:5px}
.sm-promo-tiles span{display:grid;place-items:center;width:34px;height:34px;border:2px solid #11061e;border-radius:6px;background:var(--t);font-size:20px;box-shadow:inset 2px 2px #fff9,inset -2px -2px #0005}
.sm-promo-new{position:absolute;right:-12px;top:-14px;padding:6px 8px;background:var(--pink);color:#fff;font:1000 italic 14px/1 var(--heavy);font-style:normal;border:2px solid #fff;transform:rotate(12deg);box-shadow:3px 3px #11061e}
body.motion-ok .sm-promo-new{animation:smBlink calc(1.4s * var(--speed)) steps(1) infinite}

/* ---------- below the desktop */
.sm-prose{padding-top:56px}
.sm-prose h2 em{font-style:normal;color:var(--yellow);text-shadow:3px 3px var(--pink)}

@keyframes smBlink{50%{opacity:0}}
@keyframes smWalk{50%{translate:0 -4px}}
@keyframes smWobble{50%{scale:1.16;rotate:8deg}}
@keyframes smBanner{0%{scale:.3;opacity:0}15%{scale:1.15;opacity:1}75%{scale:1;opacity:1}100%{scale:1;opacity:0}}
@keyframes smPace{0%{translate:-16px 0;scale:1 1}49.9%{translate:16px 0;scale:1 1}50%{translate:16px 0;scale:-1 1}99.9%{translate:-16px 0;scale:-1 1}100%{translate:-16px 0;scale:1 1}}
@keyframes smFlash{50%{background:#ff9900;color:#000}}
@keyframes smFloat{50%{translate:0 -6px}}
@keyframes smNickBlink{50%{border-color:#ffcc00}}
@keyframes smPulse{50%{scale:1.12}}
@keyframes smLoad{from{width:0}to{width:100%}}
@keyframes smPetal{0%{fill:#ffff66}100%{fill:#33cc33}}
@keyframes smPetalHl{0%{fill:#ffffcc}100%{fill:#99ff99}}

/* ---------- phones: the game window only, big arrows; a score row on top (you left, Mi-Do or the
   friend right, as on the ground below), her speech bubble under it, the cats, then board and tiles */
@media(max-width:700px){
  /* on this page the site header scrolls away instead of covering a third of the game, and the floating
     ENABLE MEWSIC sticker stays off the board (the header's MEWSIC button does the same job) */
  body[data-page="slide"] .nav{position:relative}
  body[data-page="slide"] .mewsic-cta{display:none}
  /* no isolation: README.TXT, the Litter Box and dialogs (position:fixed) must rise above header and dock.
     The 256-colour filter sits on each window here (a filter on the desk would trap the fixed windows). */
  .sm-desk{height:auto!important;min-height:0;overflow:visible;isolation:auto;padding:14px 16px 26px;background-position:30% 40%}
  .sm-win:not(.sm-win-game){filter:url(#sm-256)}
  .sm-icons,.sm-hatch,.sm-taskbar,.sm-startmenu,.sm-win-chat,.sm-launch,.sm-win-web,.sm-win-amp,.sm-menubar-note,.sm-win-game .sm-tb-btns,.sm-desk-only,.sm-win .sm-tbb:not(.sm-tbb-x),.sm-pay{display:none!important}
  .sm-mark{position:static;max-width:none;margin:0 0 10px;text-align:center}
  .sm-mark h1{font-size:21px}
  .sm-mark p,.sm-logo-tiles{display:none}
  /* one window, always the active one */
  .sm-win:not(.is-active):not(.sm-win-dialog) .sm-titlebar{background:linear-gradient(180deg,#3399ff 0%,#0066ff 14%,#0066ff 52%,#0033cc 86%,#003399 100%);color:#fff;text-shadow:1px 1px 0 #000033}
  .sm-win:not(.is-active):not(.sm-win-dialog){box-shadow:inset 0 0 0 3px var(--sm-frame),3px 4px 0 #00000066}
  .sm-win{position:relative;left:auto!important;top:auto!important}
  /* arrows 44 px thick (+2 px of invisible hit area all round); the cells get the rest of the width */
  .sm-win-game{width:100%;--arr:46px;--cell:min(64px,calc((100vw - 32px - 6px - 16px - 92px) / 5))}
  .sm-arrow-left,.sm-arrow-right{width:calc(var(--arr) - 2px)}
  .sm-arrow-top{height:calc(var(--arr) - 2px)}
  .sm-arrow::before{content:'';position:absolute;inset:-2px}
  .sm-arrow-glyph b{font-size:16px}.sm-arrow-glyph small{font-size:10px}
  .sm-game{grid-template-columns:46px minmax(0,1fr) minmax(0,1fr) 46px;grid-template-rows:none;grid-template-areas:"lava linfo rinfo rava" "bub bub bub bub" "tug tug tug tug" "board board board board" "q q q q";align-items:center;gap:8px 8px;padding:8px}
  .sm-player{display:contents}
  .sm-player .sm-ava{width:46px}
  .sm-player-L .sm-ava{grid-area:lava}
  .sm-player-R .sm-ava{grid-area:rava}
  .sm-pinfo{flex-direction:row;flex-wrap:wrap;align-items:center;align-content:center;gap:2px 6px;padding:4px 6px;background:#fff;border:2px solid #000033;border-radius:5px}
  .sm-player-L .sm-pinfo{grid-area:linfo;justify-content:flex-start;text-align:left;border-top:4px solid var(--sm-pink)}
  .sm-player-R .sm-pinfo{grid-area:rinfo;justify-content:flex-end;text-align:right;border-top:4px solid var(--sm-cyan)}
  .sm-pname,.sm-pteam{flex-basis:100%}
  .sm-pname{font-size:16px}.sm-pteam{font-size:8px}
  .sm-score{min-width:0;margin:0;padding:3px 6px 2px;font-size:15px}
  .sm-turnflag{padding:1px 4px;font-size:9px}
  .sm-ava-face{font-size:20px;right:-8px;bottom:-8px}
  .sm-player.is-turn{box-shadow:none}
  .sm-player.is-turn .sm-pinfo{box-shadow:0 0 0 3px #ffff00}
  .sm-player.is-winner .sm-ava::after{top:-20px;font-size:20px}
  /* room for two lines from the start, so a longer line later does not push the board under the chaos dock */
  .sm-bubble{min-height:calc(2.6em + 18px);max-height:none;margin:2px 0 0;font-size:12.5px}
  .sm-bubble::before{right:17px}
  .sm-tug{height:40px}
  /* NOW / NEXT (owner, 18.11.): the tile in play is big, glows in its owner's colour and wears a tag saying whose it
     is; NOW left of it, NEXT over the next tiles. The panel keeps its old 62 px: the big tile reaches over the panel's
     own border and padding instead of making it taller (64 px take 47 in the grid: the -2/-15 px margins), because the
     start scroll (phoneScroll: the window's bottom on the chaos dock) would lift every extra pixel of it under the
     sticky app bar on a short phone. NEXT, the next tiles and their owner bars fit the 58 px inside the border, the
     tiles high enough that the I SEEK MEW flower on a 320 px phone covers less of the third one than before. */
  .sm-queue{grid-template-columns:auto auto auto;grid-template-rows:auto auto;justify-content:center;align-items:center;gap:1px 8px;padding:1px 8px 10px}
  .sm-q-label{line-height:1}
  .sm-queue>.sm-q-label:first-child{grid-area:1/1/3/2;margin-top:13px}   /* centred on the tile */
  .sm-q-now{grid-area:1/2/3/3;margin:-2px 0 -15px;padding:0 4px}
  .sm-q-now+.sm-q-label{grid-area:1/3/2/4;align-self:end;justify-self:start}
  .sm-q-next{grid-area:2/3/3/4;align-self:start}
  .sm-q-now .sm-q-chip{--cell:64px}.sm-q-next .sm-q-chip{--cell:36px}
  .sm-q-now .sm-q-chip::before{border-width:4px;box-shadow:inset -2px -3px 0 #cc9966,inset 2px 2px 0 #fff,0 0 0 3px #fff,0 0 0 6px var(--sm-pink),0 0 14px 6px var(--sm-pink)}
  .sm-q-now .sm-q-chip.is-R::before{box-shadow:inset -2px -3px 0 #cc9966,inset 2px 2px 0 #fff,0 0 0 3px #fff,0 0 0 6px var(--sm-cyan),0 0 14px 6px var(--sm-cyan)}
  /* the owner's bar under the tile becomes a tag on its lower edge; '' as its alt text: the chip's title already says it */
  .sm-q-now .sm-q-chip::after{content:'YOUR TILE';content:'YOUR TILE' / '';left:50%;right:auto;bottom:3px;height:auto;padding:1px 4px 0;transform:translateX(-50%);border:2px solid #000033;border-radius:4px;
    background:var(--sm-pink);color:#000033;font:700 10px/1 var(--sm-title);letter-spacing:.5px;white-space:nowrap}
  .sm-q-now .sm-q-chip.is-R::after{content:'THEIR TILE';content:'THEIR TILE' / '';background:var(--sm-cyan)}
  .sm-statusbar [data-sm-moveno]{display:none}
  /* the start, invite and result screens begin at the top of the game, not centred over the whole column */
  .sm-screen.is-on{place-items:start center}
  .sm-panel{padding:12px}
  .sm-choices,.sm-field{grid-template-columns:minmax(0,1fr)}
  .sm-choices .sm-sticker{min-height:76px;margin:6px -18px 4px;padding:10px 14px}   /* over the card's edge, inside the screen's padding */
  .sm-choices .sm-big-bot{width:min(100%,230px);min-height:52px;padding:5px 10px 5px 6px}.sm-choices .sm-big-bot img{width:36px;height:36px}
  .sm-moods{gap:5px}.sm-mood{padding:6px 3px}.sm-mood img{width:44px;height:44px}.sm-mood b{font-size:12px}.sm-mood small{display:none}
  .sm-step-h{font-size:18px}
  /* tap targets: 44 px */
  .sm-menu-btn,.sm-dropdown button,.sm-btn,.sm-linkbtn,.sm-check,.sm-field select,.sm-field input,.sm-linkbox input{min-height:44px}
  .sm-menu-btn{padding:3px 12px}
  .sm-menu{position:static}   /* every drop-down opens at the left edge of the menu bar, never off screen */
  .sm-dropdown{max-width:calc(100vw - 40px)}
  .sm-dropdown button{align-items:center}
  .sm-check input{width:20px;height:20px}
  /* README.TXT and the Litter Box: over everything, with a big close button and wrapping prose. */
  .sm-win-readme,.sm-win-litter{position:fixed!important;left:10px!important;right:10px;top:12px!important;bottom:84px;z-index:330!important;width:auto!important;height:auto!important}
  .sm-win-litter{bottom:auto}
  .sm-win-readme .sm-titlebar,.sm-win-litter .sm-titlebar,.sm-win-dialog .sm-titlebar{height:44px}
  .sm-tbb-x{width:44px;height:38px;font-size:20px}
  .sm-notepad{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}   /* the 30-column points table still fits at 360 px */
  .sm-modal,.sm-safe{position:fixed;z-index:340}
  .sm-dlg-btns .sm-btn{min-width:96px}
  .sm-prose{padding-top:40px}
}
/* the desktop cats (10.11., src/js/slide-pets.js): a layer over every window and under the start menu and the taskbar
   (8999 < 9000 < 9001: a cat stands on the bar's top edge, her picture's transparent foot padding behind it), full
   colour like the game window (not in the #sm-256 list). The layer takes no clicks; only a cat does. Positions are
   transforms set by the script; the heart floats only under body.motion-ok (calm mode: it shows and goes). A held
   cat (round 2: press and hold) hangs on the pointer over her sisters; the one ball (.sm-pet-ball, the game's item
   picture) rolls along the taskbar's top edge, its picture turning. */
.sm-pets{position:absolute;inset:0;z-index:8999;overflow:hidden;pointer-events:none}
.sm-pet{position:absolute;left:0;top:0;pointer-events:auto;cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none;will-change:transform}
.sm-pet.is-held{cursor:grabbing;z-index:2}
.sm-pet-ball{position:absolute;left:0;top:0;width:26px;height:26px;pointer-events:auto;cursor:pointer;will-change:transform}
.sm-pet-ball img{display:block;width:26px;height:26px;pointer-events:none;-webkit-user-drag:none}
.sm-pet img{display:block;image-rendering:auto;pointer-events:none;-webkit-user-drag:none}
.sm-pet.is-left img{transform:scaleX(-1)}
.sm-pet-heart{position:absolute;left:0;top:0;margin:-20px 0 0 -8px;font:bold 18px/1 var(--sm-ui);color:#ff3399;text-shadow:1px 1px 0 #fff,-1px -1px 0 #fff;pointer-events:none}
.motion-ok .sm-pet-heart{animation:smCatHeart 1s ease-out forwards}
@keyframes smCatHeart{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-36px)}}
@media(max-width:700px){.sm-pets{display:none}}
.sm-phone-nav,.sm-phone-home,.sm-phone-messenger{display:none}
@media(max-width:700px){
 body.sm-mobile-app{overflow:hidden}
 .sm-phone-nav{display:flex;position:sticky;top:0;z-index:326;gap:4px;padding:5px;margin:0 0 8px;background:#d4d0c8;border:2px outset #fff;box-shadow:2px 3px #0008}
 .sm-phone-nav button{flex:1;min-height:40px;border:2px outset #fff;background:#e8e8e8;color:#111;font:900 12px Tahoma,sans-serif;display:flex;align-items:center;justify-content:center;gap:5px}
 .sm-phone-nav button[aria-pressed="true"]{border-style:inset;background:#d7e6ff}.sm-phone-nav img{width:24px;height:24px}
 .sm-desk:not([data-sm-app="game"]) .sm-phone-nav{position:fixed;top:var(--sm-vtop,0px);left:8px;right:8px;margin:0;height:48px}
 .sm-phone-home:not([hidden]){display:block;position:fixed;top:calc(var(--sm-vtop,0px) + 54px);left:8px;right:8px;height:var(--sm-app-height,70dvh);overflow:auto;z-index:320;padding:14px 9px 30px;background:linear-gradient(140deg,#007d83,#002a64);border:3px outset #b7cbe8;color:white}
 .sm-phone-home h2{font:900 23px var(--sm-title);margin:0 0 16px;text-align:center}.sm-phone-home h2 small{display:block;font:12px Tahoma,sans-serif;margin-top:5px}
 .sm-phone-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 5px}.sm-phone-app{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-height:91px;padding:6px 2px;background:none;border:1px solid transparent;color:#fff;text-shadow:1px 1px #000;font:700 11px/1.25 Tahoma,sans-serif;text-align:center;text-decoration:none}
 .sm-phone-app img{width:48px;height:48px;object-fit:contain;image-rendering:pixelated}.sm-phone-app:active,.sm-phone-app:focus-visible{background:#00008088;border-color:#fff;outline:1px dotted #fff}.sm-phone-home-note{font:11px/1.5 Tahoma,sans-serif;text-align:center;margin:18px 0 0}
 .sm-phone-messenger{display:flex;position:fixed;right:12px;bottom:var(--sm-flower-bottom,105px);width:58px;min-height:65px;flex-direction:column;align-items:center;justify-content:center;gap:2px;z-index:328;padding:4px;background:#d5e2ff;border:2px outset white;box-shadow:3px 3px #0008;color:#000080;font:900 7px Tahoma,sans-serif}
 .sm-phone-messenger img,.sm-phone-messenger svg{width:40px;height:40px}.sm-phone-messenger b{position:absolute;top:-9px;right:-5px;min-width:22px;padding:3px;border:2px solid white;background:#f06;color:white;border-radius:10px;font:900 11px Tahoma,sans-serif}
 .sm-phone-messenger.has-news{border-color:#ff0;background:#fff8bd}.sm-phone-messenger[aria-pressed="true"]{border-style:inset}
 .sm-desk .sm-win-chat:not([hidden]),.sm-desk .sm-win-web:not([hidden]),.sm-desk .sm-win-readme:not([hidden]),.sm-desk .sm-win-litter:not([hidden]),.sm-desk .sm-win-amp:not([hidden]){display:flex!important;position:fixed!important;left:8px!important;right:8px!important;top:calc(var(--sm-vtop,0px) + 54px)!important;bottom:auto!important;width:auto!important;height:var(--sm-app-height,70dvh)!important;max-height:none;z-index:321!important;overflow:hidden;flex-direction:column}
 .sm-desk .sm-win[hidden]{display:none!important}
 .sm-desk .sm-win .sm-titlebar{flex-shrink:0;min-height:38px}.sm-desk .sm-win .sm-tbb-x{display:grid!important;place-items:center;width:40px;min-height:34px}
 .sm-chat{overflow:hidden}.sm-contact-ava{width:44px;height:44px}.sm-contact{flex-shrink:0}.sm-contact-info{min-width:0}.sm-contact-info b{overflow-wrap:anywhere}.sm-uin{display:none}.sm-chat-form{flex-shrink:0}.sm-chat-form textarea{font-size:16px;min-height:54px}.sm-chat-tools{flex-shrink:0}.sm-chat-form .sm-send{min-width:60px}.sm-chat .sm-emo{max-height:140px;overflow:auto}.sm-msg-t{overflow-wrap:anywhere}
 .sm-web-tools{flex-wrap:wrap}.sm-web-tool{min-width:40px;min-height:40px}.sm-web-brand{display:none}.sm-web-addr input{font-size:16px;min-height:36px}.sm-web-view{min-height:120px}.sm-web-view iframe{min-height:100%}
 .sm-win-readme .sm-notepad{font-size:12px}.sm-win-litter .sm-litter{overflow:auto}.sm-phone-nav~.sm-win-game{margin-bottom:105px}
}

@media(max-width:700px){.sm-desk .sm-log{min-height:30px}.sm-small-viewport .sm-contact,.sm-small-viewport .sm-typing{display:none}.sm-small-viewport .sm-chat .sm-emo{max-height:85px}.sm-small-viewport .sm-chat{gap:4px}.sm-small-viewport .sm-chat-form textarea{min-height:48px;height:48px}}

@media(max-width:700px){.sm-desk[data-sm-app="chat"] .sm-chat-form,.sm-desk .sm-win-game .sm-statusbar{padding-right:64px}}

/* ---------- online, nobody misses the other one (18.11.2026, owner decision §19; slide.js). LEAVE GAME sits at the
   right end of the game's menu bar in online games only (the bar may wrap on the narrowest phones: nothing is squeezed
   or hidden). The I SEEK MEW popup for a new message while the chat is not on screen: the desk's top right on
   computers (slide.js moves it below the floating ENABLE MEWSIC sticker when that hangs there), over the top strip of
   the screen on phones (where the sticky app bar is: clear of the board, the arrows and the NOW tile). It slides in
   only under body.motion-ok (calm mode: it just shows). The message text: two lines at most. */
.sm-win-game .sm-menubar{flex-wrap:wrap}
.sm-menubar .sm-leave{min-height:0;margin-left:4px;padding:1px 8px;font:700 11px/1.3 var(--sm-ui);white-space:nowrap;background:linear-gradient(180deg,#fff 0%,#ffcccc 70%,#ff9999 100%)}
.sm-msgpop{position:absolute;top:10px;right:10px;z-index:9400;display:flex;align-items:stretch;width:min(300px,calc(100% - 20px));overflow:hidden;background:#fff;color:#000;
  border:1px solid #000066;border-radius:6px 6px 3px 3px;box-shadow:inset 0 0 0 2px var(--sm-frame),3px 4px 0 #00000066}
.sm-msgpop[hidden]{display:none}
.sm-msgpop-open{display:flex;flex-direction:column;flex:1;min-width:0;margin:2px 0 2px 2px;padding:0;background:none;border:0;color:#000;text-align:left;cursor:pointer}
.sm-msgpop-h{display:flex;align-items:center;gap:4px;padding:2px 6px;background:linear-gradient(180deg,#3399ff 0%,#0066ff 14%,#0066ff 52%,#0033cc 86%,#003399 100%);color:#fff;font:700 11px/1.2 var(--sm-title);letter-spacing:.3px;text-shadow:1px 1px 0 #000033}
.sm-msgpop-h .sm-flower{flex-shrink:0;width:12px;height:12px}
.sm-msgpop-t{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;padding:5px 8px 6px;background:linear-gradient(180deg,#fff,#ccffcc);font:13px/1.25 var(--sm-ui);overflow-wrap:anywhere}
.sm-msgpop-open:hover .sm-msgpop-t{background:#ffffcc}
.sm-msgpop-x{display:grid;place-items:center;flex-shrink:0;width:34px;min-height:34px;margin:2px 2px 2px 0;padding:0;border:0;border-left:1px solid #000066;color:#fff;font:700 20px/1 var(--sm-ui);cursor:pointer;
  background:linear-gradient(180deg,#ff9966,#ff3300 50%,#cc3300)}
.sm-msgpop-x:hover{filter:brightness(1.15)}
.sm-desk :is(.sm-msgpop-open,.sm-msgpop-x):focus-visible{outline:2px dotted #000;outline-offset:-3px;box-shadow:none}
body.motion-ok .sm-msgpop.is-in{animation:smMsgpopIn .3s cubic-bezier(.2,.8,.3,1.15)}
@keyframes smMsgpopIn{from{translate:calc(100% + 16px) 0}to{translate:0 0}}
@keyframes smMsgpopDown{from{translate:0 calc(-100% - 12px)}to{translate:0 0}}
@media(min-width:701px){.sm-desk>.sm-msgpop{filter:url(#sm-256)}}
@media(max-width:700px){
 .sm-menubar .sm-leave{min-height:44px;margin-left:auto;padding:3px 10px;font-size:12px}
 .sm-msgpop{position:fixed;top:calc(var(--sm-vtop,0px) + 2px);left:8px;right:8px;z-index:335;width:auto;max-width:460px;margin:0 auto}
 .sm-msgpop-h{padding:1px 6px;font-size:10px}
 .sm-msgpop-t{padding:3px 8px 4px;font:12px/1.2 var(--sm-ui)}   /* two lines end above the app bar's bottom edge (≈ 58 px) */
 .sm-msgpop-x{width:40px}
 body.motion-ok .sm-msgpop.is-in{animation-name:smMsgpopDown}
}
@media(max-width:340px){.sm-menubar .sm-leave{padding:3px 6px;font-size:11px}}   /* 320 px: still in one row with Game, Options, Help */

/* 61-mewspace.css */
/* SAD CAT DISCO · MEWSPACE: Mi-Do and Yu-Na's profile page on the social network of the time, inside the
   desktop's browser window on /slide-a-meow/ (markup: build/pages/slide-mewspace.js, behaviour:
   src/js/slide-mewspace.js). The page of 2006: the blue bar of the site on top, then the profile, 800 px wide,
   left column 300 px, right column the rest, "customised" the way it was done back then: black background,
   hot pink, glitter text, skulls, a blinking Online Now!, a scrolling welcome line. Tahoma/Verdana at the small
   sizes of the time. Every colour is web-safe (the desktop posterises to 216 colours anyway). Animations only
   under body.motion-ok. Every selector starts with .mw. */
.mw{--mw-pink:#ff3399;--mw-pink2:#ff66cc;--mw-pale:#ff99cc;--mw-plum:#330033;--mw-purple:#660066;--mw-text:#cccccc;--mw-blue:#003399;--mw-nav:#6699cc;
  --mw-font:Verdana,Tahoma,'DejaVu Sans',Geneva,sans-serif;
  min-width:820px;min-height:100%;padding:0 0 18px;color:var(--mw-text);font:11px/1.45 var(--mw-font);text-align:left;
  background:#000000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M12 17c-4-3-5-4.6-5-6 0-1.2 1-2 2-2 .8 0 1.6.6 2 1.2.4-.6 1.2-1.2 2-1.2 1 0 2 .8 2 2 0 1.4-1 3-5 6z' fill='%23330033'/%3E%3Cpath d='M46 40l1.6 4.2 4.4.2-3.4 2.8 1.2 4.4-3.8-2.6-3.8 2.6 1.2-4.4-3.4-2.8 4.4-.2z' fill='%23330033'/%3E%3Ccircle cx='52' cy='12' r='1' fill='%23660066'/%3E%3Ccircle cx='20' cy='50' r='1' fill='%23660066'/%3E%3C/svg%3E") 0 0/64px 64px}
.mw *{box-sizing:border-box}
.mw img{display:inline-block;max-width:none;vertical-align:top;image-rendering:pixelated}
.mw p,.mw h3,.mw h4,.mw h5,.mw ul{margin:0}
.mw ul{padding:0;list-style:none}
.mw a{color:var(--mw-pink2);text-decoration:underline}
.mw a:hover,.mw .mw-link:hover{color:#ffffff}
.mw b{color:#ffffff}
.mw button{font:inherit;color:inherit;cursor:pointer}
.mw button:active{filter:none}
.mw .mw-link{display:inline;padding:0;background:none;border:0;color:var(--mw-pink2);font:inherit;text-decoration:underline}
.mw :is(a,button,input):focus-visible{outline:1px dotted #ffffff;outline-offset:1px;box-shadow:none}
.mw svg{display:inline-block;vertical-align:-2px}
.mw .mw-skull{width:14px;height:14px}
.mw .mw-heart,.mw .mw-star{width:12px;height:12px}
.mw .mw-pink{color:var(--mw-pink)}
.mw .mw-center{text-align:center}

/* ---------- glitter text: a striped pink/white/purple band with sparkles, clipped to the letters */
.mw .mw-glitter{font-weight:700;color:var(--mw-pink);
  background:radial-gradient(circle,#ffffff 0 .7px,transparent 1.1px) 0 0/7px 6px,repeating-linear-gradient(105deg,#ff3399 0 9px,#ffffff 9px 12px,#cc66ff 12px 22px,#ff66cc 22px 30px,#ffccff 30px 33px,#ff3399 33px 42px,#9933ff 42px 50px,#ffffff 50px 52px,#ff3399 52px 60px);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none}
body.motion-ok .mw .mw-glitter{animation:mwGlitter 2.4s steps(12) infinite}
.mw .mw-big{font-size:15px;letter-spacing:.5px}

/* ---------- the banner ad on top (a parody of the flashing ones of the time: it advertises nothing) */
.mw .mw-ad{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;width:728px;height:90px;margin:8px auto 6px;padding:0 120px 0 20px;overflow:hidden;
  background:repeating-linear-gradient(135deg,#ffff00 0 18px,#ffcc00 18px 36px);border:3px outset #ffff99;color:#0000cc;font:700 15px/1.15 Arial,Helvetica,sans-serif;text-align:left}
.mw .mw-ad b{flex-shrink:0;color:#ff0000;font:900 22px/1 Impact,'Arial Black',sans-serif;letter-spacing:1px;text-shadow:2px 2px 0 #000000}
.mw .mw-ad u{color:#cc0000}
.mw .mw-ad-tag{position:absolute;left:4px;top:1px;color:#666666;font:9px Arial,sans-serif}
.mw .mw-ad-btn{position:absolute;right:16px;top:50%;margin-top:-15px;padding:6px 10px;background:#cccccc;border:2px outset #ffffff;color:#000000;font:700 12px Arial,sans-serif}
.mw .mw-ad-dot{position:absolute;left:70%;top:62%;width:14px;height:14px;border-radius:50%;background:#ff0000;box-shadow:0 0 0 2px #ffffff,0 0 8px 3px #ff0000}
body.motion-ok .mw .mw-ad b{animation:mwBlink 1s steps(1) infinite}
body.motion-ok .mw .mw-ad-dot{animation:mwDot 3.2s steps(16) infinite}
body.motion-ok .mw .mw-ad-btn{animation:mwFlash .8s steps(1) infinite}
.mw .mw-ad:hover .mw-ad-btn{border-style:inset}

/* ---------- the site's bar: logo, search, help; the nav strip under it */
.mw .mw-top{background:var(--mw-blue);border-bottom:1px solid #000066}
.mw .mw-top-in{display:flex;align-items:center;gap:14px;width:800px;height:58px;margin:0 auto;padding:0 6px}
.mw .mw-logo{display:flex;align-items:baseline;gap:0;color:#ffffff;white-space:nowrap}
.mw .mw-logo-ico{width:40px;height:28px;margin-right:6px;align-self:center}
.mw .mw-logo b{font:700 27px/1 Arial,Helvetica,sans-serif;letter-spacing:-1.5px;color:#ffffff}
.mw .mw-logo i{font:700 13px Arial,sans-serif;font-style:normal;color:#99ccff}
.mw .mw-logo small{align-self:flex-end;margin:0 0 9px 8px;font:italic 10px Arial,sans-serif;color:#99ccff}
.mw .mw-search{display:flex;align-items:center;gap:5px;margin-left:auto;color:#ffffff;font:700 10px var(--mw-font)}
.mw .mw-search-l{display:flex;align-items:center;gap:5px}
.mw .mw-search input{width:150px;height:20px;padding:1px 4px;background:#ffffff;color:#000000;border:1px solid #003366;font:11px var(--mw-font)}
.mw .mw-search-s{padding:2px 5px;background:#ffffff;color:#000000;border:1px solid #003366;font:400 10px var(--mw-font)}
.mw .mw-btn{padding:2px 7px;background:#cccccc;color:#000000;border:2px outset #ffffff;font:700 10px var(--mw-font)}
.mw .mw-btn:active{border-style:inset}
.mw .mw-help{color:#99ccff;font-size:10px;white-space:nowrap}
.mw .mw-help .mw-link{color:#ffffff;text-decoration:none}
.mw .mw-help .mw-link:hover{text-decoration:underline}
.mw .mw-nav{background:var(--mw-nav);border-bottom:1px solid #336699}
.mw .mw-nav ul{display:flex;justify-content:center;flex-wrap:wrap;width:800px;margin:0 auto;padding:3px 0}
.mw .mw-nav li{color:#ffffff;font:700 10px var(--mw-font)}
.mw .mw-nav li+li::before{content:'|';padding:0 4px;color:#ffffff;font-weight:400}
.mw .mw-nav :is(a,.mw-link){color:#ffffff;text-decoration:none;font-weight:700}
.mw .mw-nav :is(a,.mw-link):hover{text-decoration:underline}

/* ---------- the scrolling welcome line */
.mw .mw-marq{width:800px;margin:6px auto 0;overflow:hidden;white-space:nowrap;color:var(--mw-pale);font:700 11px var(--mw-font);text-align:center;border-top:1px dashed var(--mw-purple);border-bottom:1px dashed var(--mw-purple);padding:2px 0}
.mw .mw-marq span{display:inline-block}
.mw .mw-marq b{color:inherit;font-weight:700}
.mw .mw-marq-2{display:none}
body.motion-ok .mw .mw-marq{text-align:left}
body.motion-ok .mw .mw-marq-2{display:inline}
body.motion-ok .mw .mw-marq span{animation:mwMarq 26s linear infinite}

/* ---------- the profile: two columns */
.mw .mw-page{display:flex;align-items:flex-start;gap:16px;width:800px;margin:0 auto;padding:10px 4px 0}
.mw .mw-left{flex:0 0 300px;min-width:0}
.mw .mw-right{flex:1;min-width:0}
.mw .mw-name{margin:0 0 6px;color:#ffffff;font:700 19px/1.15 var(--mw-font);text-shadow:2px 2px 0 var(--mw-purple)}
.mw .mw-name-h{text-shadow:0 0 3px #ff3399,0 0 6px #ff3399}
.mw .mw-card{display:flex;gap:9px}
.mw .mw-pp{box-sizing:content-box;width:170px;height:170px;flex-shrink:0;border:1px solid var(--mw-pink)}
.mw .mw-card-info{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:10px}
.mw .mw-tagline{font-size:12px;line-height:1.3}
.mw .mw-login{color:#999999}
.mw .mw-online{display:flex;align-items:center;gap:4px}
.mw .mw-online b{color:#ff9900;font-size:10px}
.mw .mw-online-ico{width:14px;height:14px}
body.motion-ok .mw .mw-online,body.motion-ok .mw .mw-on-mini{animation:mwBlink 1.2s steps(1) infinite}
.mw .mw-mood,.mw .mw-view{margin-top:6px}
.mw .mw-mood b,.mw .mw-view b{color:var(--mw-pale)}

/* boxes: thin pink frame, a pink head bar */
.mw .mw-box{margin:12px 0 0;background:#000000;border:1px solid var(--mw-pink)}
.mw .mw-boxh{margin:0;padding:3px 6px;background:var(--mw-pink);color:#000000;font:700 11px var(--mw-font)}
.mw .mw-boxh-or{background:var(--mw-purple);color:#ffffff;border-bottom:1px solid var(--mw-pink)}
.mw .mw-contact ul{display:grid;grid-template-columns:1fr 1fr;gap:2px 6px;padding:6px 6px 7px}
.mw .mw-cbtn{display:flex;align-items:center;gap:6px;width:100%;padding:3px 2px;background:none;border:0;color:var(--mw-pale);font:700 10px var(--mw-font);text-align:left}
.mw .mw-cbtn:hover{color:#ffffff;background:var(--mw-plum)}
.mw .mw-cico{display:grid;place-items:center;width:20px;height:18px;flex-shrink:0;background:#333333;border:1px solid #666666;font-size:11px;line-height:1}
.mw .mw-url{padding:5px 7px}
.mw .mw-url b{color:var(--mw-pale)}
.mw .mw-url-v{color:#ffffff;font-size:10px}

/* the tables (Interests, Details, Schools) */
.mw .mw-tbl table{width:100%;border-collapse:separate;border-spacing:3px}
.mw .mw-tbl th{width:84px;padding:4px 5px;background:var(--mw-plum);color:var(--mw-pale);font:700 10px var(--mw-font);text-align:left;vertical-align:top}
.mw .mw-tbl td{padding:4px 5px;background:#000000;color:var(--mw-text);border:1px dotted var(--mw-purple);font-size:10px;vertical-align:top;overflow-wrap:anywhere}
.mw .mw-details th{width:96px}
.mw .mw-tbl .mw-yr{width:70px;color:#999999;text-align:right}
.mw .mw-heart-run{letter-spacing:1px}
.mw .mw-badges{display:flex;flex-direction:column;align-items:center;gap:3px;margin-top:14px;color:var(--mw-pale);font:700 11px var(--mw-font)}
.mw .mw-badges svg{margin:0 1px}
.mw .mw-xxx{padding:3px 10px;background:#000000;border:1px dashed var(--mw-pink);color:#ffffff;letter-spacing:1px}
body.motion-ok .mw .mw-badges .mw-heart{animation:mwBeat 1s steps(2) infinite}
body.motion-ok .mw .mw-badges .mw-heart:nth-child(2){animation-delay:.33s}
body.motion-ok .mw .mw-badges .mw-heart:nth-child(3){animation-delay:.66s}

/* ---------- the profile song: a slim black player of our own */
.mw .mw-player{padding:4px 6px 6px;background:linear-gradient(180deg,#333333,#000000 70%);border:1px solid #666666;border-radius:3px;color:#cccccc}
.mw .mw-pl-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:3px;font-size:9px;color:#999999;text-transform:lowercase}
.mw .mw-pl-brand{display:flex;align-items:center;gap:3px;font-weight:700;color:#99ccff}
.mw .mw-pl-brand .mw-logo-ico{width:20px;height:14px}
.mw .mw-pl-plays b{color:var(--mw-pale)}
.mw .mw-pl-main{display:flex;align-items:center;gap:8px}
.mw .mw-pl-btn{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;padding:0;border-radius:50%;background:radial-gradient(circle at 40% 35%,#666666,#000000 75%);border:2px solid var(--mw-pink);color:#ffffff;font:14px/1 Arial,sans-serif}
.mw .mw-pl-btn:hover{border-color:#ffffff}
.mw .mw-pl-btn[aria-pressed=true]{background:radial-gradient(circle at 40% 35%,#ff66cc,#990066 75%)}
.mw .mw-pl-stop{width:24px;height:24px;font-size:11px;border-color:#666666}
.mw .mw-pl-info{flex:1;min-width:0}
.mw .mw-pl-title{overflow:hidden;white-space:nowrap;color:#ffffff;font:700 11px var(--mw-font)}
.mw .mw-pl-title span{display:inline-block}
body.motion-ok .mw .mw-player.is-playing .mw-pl-title span{animation:mwTitle 9s linear infinite}
.mw .mw-pl-bar{height:6px;margin:4px 0 3px;background:#333333;border:1px solid #666666}
.mw .mw-pl-bar i{display:block;width:0;height:100%;background:repeating-linear-gradient(90deg,#ff3399 0 4px,#ff66cc 4px 6px)}
.mw .mw-pl-time{display:flex;align-items:center;gap:5px;font:10px 'Courier New',monospace;color:#999999;white-space:nowrap}
.mw .mw-pl-time [data-mw-time]{color:#ffffff}
.mw .mw-pl-note{margin-left:auto;font:italic 9px var(--mw-font);color:#999999}
.mw .mw-pl-eq{display:inline-flex;align-items:flex-end;gap:1px;height:10px}
.mw .mw-pl-eq i{display:block;width:3px;height:2px;background:#ff3399}
.mw .mw-player.is-playing .mw-pl-eq i{height:6px}
body.motion-ok .mw .mw-player.is-playing .mw-pl-eq i{animation:mwEq .5s steps(3) infinite alternate}
body.motion-ok .mw .mw-player.is-playing .mw-pl-eq i:nth-child(2){animation-delay:-.2s}
body.motion-ok .mw .mw-player.is-playing .mw-pl-eq i:nth-child(3){animation-delay:-.35s}
body.motion-ok .mw .mw-player.is-playing .mw-pl-eq i:nth-child(4){animation-delay:-.1s}
body.motion-ok .mw .mw-player.is-playing .mw-pl-eq i:nth-child(5){animation-delay:-.4s}

/* ---------- right column: extended network, blog, blurbs, Top 8, comments */
.mw .mw-ext{padding:14px 10px;text-align:center;font:700 15px/1.3 var(--mw-font);color:#ffffff}
.mw .mw-ext .mw-glitter{font-size:16px}
.mw .mw-blog,.mw .mw-blurbs,.mw .mw-friends,.mw .mw-comments{padding:6px 8px 8px}
.mw .mw-boxh2{margin:0 0 5px;color:var(--mw-pink);font:700 12px var(--mw-font)}
.mw .mw-sub{font-weight:400;font-size:10px;color:#999999}
.mw .mw-blog li{padding:2px 0 2px 14px;background:no-repeat 0 6px/9px 9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 14.4C2 10.4 1 7.4 1 5.4 1 3.2 2.8 1.6 4.8 1.6c1.4 0 2.6.8 3.2 2 .6-1.2 1.8-2 3.2-2 2 0 3.8 1.6 3.8 3.8 0 2-1 5-7 9z' fill='%23ff3399'/%3E%3C/svg%3E")}
.mw .mw-more{margin-top:6px;text-align:right;font-size:10px;color:#999999}
.mw .mw-h{display:flex;align-items:center;gap:5px;margin:0 0 6px;padding:3px 6px;background:var(--mw-plum);border-bottom:1px solid var(--mw-pink);color:var(--mw-pink2);font:700 12px var(--mw-font)}
.mw .mw-h span{flex:1}
.mw .mw-blurbs h5{margin:8px 0 3px;color:var(--mw-pink);font:700 12px var(--mw-font)}
.mw .mw-blurbs p{margin:0 0 6px;font-size:11px;color:#cccccc}
.mw .mw-count{margin:0 0 6px;font-size:11px}
.mw .mw-top8{display:grid;grid-template-columns:repeat(4,1fr);gap:10px 4px;padding:2px 0}
.mw .mw-top8 li{display:flex;flex-direction:column;align-items:center;min-width:0}
.mw .mw-friend{display:flex;flex-direction:column;align-items:center;gap:3px;max-width:100%;padding:0;background:none;border:0;text-align:center}
.mw .mw-fname{max-width:104px;color:var(--mw-pink2);font:700 10px/1.2 var(--mw-font);text-decoration:underline;overflow-wrap:anywhere}
/* the pictures keep their own pixels: 96 × 96 inside the frame (content-box), never squeezed to 94 */
.mw .mw-friend[data-mw-cat] img{object-fit:contain;background:#000000}
.mw .mw-friend img{box-sizing:content-box;width:96px;height:96px;border:1px solid var(--mw-purple)}
.mw .mw-friend:hover img{border-color:#ffffff}
.mw .mw-friend:hover .mw-fname{color:#ffffff}
.mw .mw-on-mini{display:flex;align-items:center;gap:2px;margin-top:2px;color:#ff9900;font:700 9px var(--mw-font)}
.mw .mw-on-mini svg{width:10px;height:10px}
.mw .mw-ctable{width:100%;border-collapse:separate;border-spacing:0 4px}
.mw .mw-ctable td{vertical-align:top}
.mw .mw-c-who{width:122px;padding:6px 4px;background:var(--mw-plum);text-align:center}
.mw .mw-c-who .mw-friend{margin:0 auto}
.mw .mw-c-who .mw-on-mini{justify-content:center}
.mw .mw-c-text{padding:6px 9px;background:#000000;border:1px dotted var(--mw-purple);border-left:0}
.mw .mw-c-date{margin:0 0 5px;color:var(--mw-pale);font:700 10px var(--mw-font)}
.mw .mw-c-text p+p{font-size:11px;color:#ffffff;overflow-wrap:anywhere}
.mw .mw-btn-pink{padding:3px 12px;background:var(--mw-pink);color:#000000;border-color:#ffccff}

/* ---------- visitor counter and the footer */
.mw .mw-counter{display:flex;justify-content:center;align-items:center;gap:8px;width:800px;margin:18px auto 0;color:#999999;font:10px var(--mw-font)}
.mw .mw-counter b{display:inline-flex;gap:1px}
.mw .mw-counter i{display:inline-block;width:13px;padding:1px 0;background:#000000;border:1px solid #333333;color:#00ff00;font:700 13px/1 'Courier New',monospace;font-style:normal;text-align:center}
.mw .mw-foot{width:800px;margin:12px auto 0;padding:8px 0 0;background:none;border-top:1px solid #333333;text-align:center;font:10px/1.45 var(--mw-font);color:#666666}
.mw .mw-foot p{margin:0;font:inherit;color:inherit}
.mw .mw-foot p+p{margin-top:4px}
.mw .mw-foot :is(a,.mw-link){color:#6699cc}

@keyframes mwGlitter{to{background-position:7px 6px,60px 0}}
@keyframes mwBlink{50%{opacity:0}}
@keyframes mwFlash{50%{background:#ff0000;color:#ffffff}}
@keyframes mwBeat{50%{transform:scale(1.3)}}
@keyframes mwMarq{to{transform:translateX(-50%)}}
@keyframes mwTitle{0%,15%{transform:translateX(0)}85%,100%{transform:translateX(-35%)}}
@keyframes mwEq{from{height:2px}to{height:10px}}
@keyframes mwDot{0%{left:62%;top:66%}12%{left:74%;top:18%}25%{left:88%;top:58%}37%{left:4%;top:70%}50%{left:30%;top:14%}62%{left:56%;top:72%}75%{left:82%;top:20%}87%{left:12%;top:24%}100%{left:62%;top:66%}}

/* The same profile, readable inside the pocket browser. */
@media(max-width:700px){.mw{min-width:0;width:100%;font-size:12px}.mw .mw-ad{width:calc(100% - 16px);height:85px;padding:10px;gap:7px}.mw .mw-top-in,.mw .mw-nav ul,.mw .mw-marq,.mw .mw-page{width:100%}.mw .mw-top-in{height:auto;min-height:58px;flex-wrap:wrap;padding:8px;gap:8px}.mw .mw-search input{width:125px;min-height:32px;font-size:16px}.mw .mw-page{display:block;padding:10px}.mw .mw-left,.mw .mw-right{width:100%}.mw .mw-right{margin-top:16px}.mw .mw-pp{width:142px;height:142px}.mw .mw-nav a,.mw .mw-nav button{min-height:34px;padding:5px}.mw .mw-top8{grid-template-columns:repeat(4,minmax(0,1fr))}.mw .mw-top8 img{width:100%;max-width:80px;height:80px;object-fit:contain}.mw .mw-top8 .mw-fname{font-size:10px}.mw .mw-c-who{width:86px}.mw .mw-c-who img{width:70px;height:70px}.mw .mw-c-text{overflow-wrap:anywhere}.mw .mw-comment-table{table-layout:fixed;width:100%}}

/* 62-meowamp.css */
/* SAD CAT DISCO · MEOWAMP, the desktop's music player on /slide-a-meow/ and, on that page, the site's chaos dock.
   A shaped window: a glossy green cat head (inline SVG, build/pages/slide-meowamp.js) with HTML controls laid
   over it at fixed spots of its 336 × 344 drawing, and two side panels hidden behind it. No frame, no title bar.
   The window is a fixed 820 × 352 box with the head in the middle (left 242, top 4); the box, the head's empty
   corners and the folded panels let every click through, so the desktop around the cat stays usable.
   A click on the head (or Enter on the name on its chin) folds the panels out: they jump out from behind the
   cheeks frame by frame (steps(1)): a wind-up, out, past the stop, wobble on their hinges, and the head jolts
   when they hit, ugly on purpose like the side parts of the famous skins of the time. Hovering the head makes it
   glow and lets the panel ends stick out with blinking pull arrows (the LED display says CLICK TO UNFOLD); a
   click on such an end unfolds too. Colours are web-safe like the rest of the desktop
   (the #sm-256 filter bands the gradients). Animations only under body.motion-ok: in calm mode the panels just
   appear. Phones never show it (60-slide.css hides .sm-win-amp there). */
.sm-desk .sm-win.sm-win-amp,.sm-desk .sm-win.sm-win-amp:not(.is-active):not(.sm-win-dialog){display:block;width:820px;height:352px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;color:#00ff00;opacity:1;pointer-events:none}
.sm-desk .sm-win.sm-win-amp.is-max{width:820px!important;height:352px!important;border-radius:0}
/* the player moves itself back onto the desk (slide-meowamp.js keepOnDesk): a short hop in three jerks */
body.motion-ok .sm-desk .sm-win.sm-win-amp.is-hopping{transition:left .21s steps(3,end),top .21s steps(3,end)}
.sm-win-amp>*{position:absolute;margin:0}

/* ---------- the head */
.amp-head{left:242px;top:4px;z-index:2;width:336px;height:344px;pointer-events:none}
.amp-head>*{position:absolute;margin:0}
.amp-skin{left:0;top:0;width:336px;height:344px;overflow:visible;filter:drop-shadow(3px 4px 0 #00000066);touch-action:none}
.amp-grip{pointer-events:visiblePainted;cursor:pointer}
.sm-win-amp.is-dragging .amp-grip{cursor:move}
.sm-win-amp.is-dragging .amp-skin{filter:drop-shadow(6px 8px 0 #00000066)}
.amp-glass{left:0;top:0;width:336px;height:344px;pointer-events:none}
/* the hint: a lime halo around the head and a little more light on it while the pointer is there */
.amp-halo,.amp-shine{pointer-events:none;opacity:0}
.sm-win-amp.is-hover .amp-halo{opacity:.9}
.sm-win-amp.is-hover .amp-shine{opacity:.1}
body.motion-ok .sm-win-amp.is-hover .amp-halo{animation:ampHalo .9s steps(1,end) infinite}

/* the name on the chin: the button that folds the panels out (for the keyboard; the mouse can click anywhere) */
.amp-title{left:0;top:297px;width:336px;font:inherit;text-align:center;pointer-events:none}
.sm-win-amp .amp-fold{display:inline-block;padding:2px 10px 3px;background:none;border:0;border-radius:12px;color:#006600;font:italic 400 19px/1 var(--heavy);letter-spacing:2px;
  text-shadow:1px 1px 0 #ccff99,-1px -1px 0 #003300;cursor:pointer;pointer-events:auto;user-select:none}
.sm-win-amp.is-hover .amp-fold{color:#009900}

/* minimise and the visualiser mode: one button in each ear */
.sm-win-amp .amp-earbtn{left:74px;top:70px;display:grid;place-items:center;width:22px;height:22px;margin:-11px 0 0 -11px;padding:0;color:#ffffff;border:2px solid #003300;border-radius:50%;cursor:pointer;pointer-events:auto;
  background:radial-gradient(circle at 36% 30%,#ccff99 0 12%,#66cc33 45%,#006600 100%);box-shadow:inset -1px -2px 0 #003300,0 1px 0 #ffccff}
.sm-win-amp .amp-earbtn-vis{left:262px;background:radial-gradient(circle at 36% 30%,#ccffff 0 12%,#33cccc 45%,#006666 100%)}
.amp-earbtn svg{width:12px;height:12px;fill:currentColor;filter:drop-shadow(1px 1px 0 #003300)}
.sm-win-amp .amp-earbtn:hover{filter:brightness(1.2)}
.sm-win-amp .amp-earbtn:active{box-shadow:inset 1px 2px 0 #003300}

/* the paw print on the forehead: four toe beans and the big pad (play) */
.amp-paw{left:0;top:0;width:0;height:0}
.sm-win-amp .amp-bean{position:absolute;display:grid;place-items:center;width:26px;height:28px;margin:-14px 0 0 -13px;padding:0;color:#660033;border:2px solid #660033;border-radius:50%;cursor:pointer;pointer-events:auto;transform:rotate(var(--r,0deg));
  background:radial-gradient(circle at 36% 28%,#ffffff 0 9%,#ffccff 10% 26%,#ff99cc 54%,#cc6699 100%);box-shadow:inset -2px -3px 0 #cc3366,0 1px 0 #99ff66}
.amp-bean svg{width:12px;height:12px;fill:currentColor;transform:rotate(calc(-1 * var(--r,0deg)))}
.amp-bean-1{left:128px;top:96px;--r:-24deg}
.amp-bean-2{left:152px;top:79px;--r:-8deg}
.amp-bean-3{left:184px;top:79px;--r:8deg}
.amp-bean-4{left:208px;top:96px;--r:24deg}
.sm-win-amp .amp-pad{left:168px;top:110px;width:46px;height:29px;margin:-14px 0 0 -23px;border-radius:50% 50% 46% 46%/62% 62% 38% 38%}
.amp-pad svg{width:15px;height:15px}
.sm-win-amp .amp-bean:hover{background:radial-gradient(circle at 36% 28%,#ffffff 0 12%,#ffccff 13% 34%,#ff99cc 62%,#cc6699 100%)}
.sm-win-amp .amp-bean:active{box-shadow:inset 2px 3px 0 #cc3366;color:#330000}
/* playing: the pad glows LED green; paused: the pause bean */
.sm-win-amp.is-playing .amp-pad,.sm-win-amp.is-paused .amp-bean-2{box-shadow:inset -2px -3px 0 #cc3366,0 0 0 2px #003300,0 0 0 4px #00ff00}
body.motion-ok .sm-win-amp.is-paused .amp-bean-2{animation:ampBlink 1s steps(1) infinite}

/* the face: the LED display and the visualiser behind the visor's glass (a click on them is a click on the head) */
.amp-lcd{left:92px;top:137px;width:152px;height:44px;pointer-events:none}
.amp-vis{left:112px;top:186px;width:112px;height:56px;background:#000000;pointer-events:none}
.amp-lcd canvas,.amp-vis canvas{display:block;width:100%;height:100%;image-rendering:pixelated}

/* the speaker cones bump on every kick drum */
.sm-win-amp .amp-cone{transform-box:fill-box;transform-origin:center}
body.motion-ok .sm-win-amp .amp-cone{transition:transform .1s ease-out}
body.motion-ok .sm-win-amp.is-kick .amp-cone{transform:scale(1.09);transition-duration:.03s}

/* ---------- the side panels. Each sits in a slot that ends at the head's centre line, so a folded panel (pushed
   in behind the head) never shows on the other side. Folded and not hovered they are hidden for everyone. */
.amp-slot{top:0;z-index:1;width:410px;height:352px;overflow:hidden;pointer-events:none}
.amp-slot-l{left:0}
.amp-slot-r{left:410px}
.amp-wing{position:absolute;top:70px;width:290px;height:212px;visibility:hidden;pointer-events:none}
.amp-wing-l{left:22px;transform:translateX(258px);transform-origin:100% 50%}
.amp-wing-r{left:98px;transform:translateX(-258px);transform-origin:0 50%}
.amp-wing-skin{position:absolute;left:0;top:0;width:290px;height:212px;overflow:visible;filter:drop-shadow(3px 4px 0 #00000066)}
.amp-wing-skin *{pointer-events:none}
.amp-wing-body{position:absolute;left:0;top:0;width:290px;height:212px;visibility:hidden}
.amp-wing-body>*{position:absolute;margin:0}
.sm-win-amp.is-open .amp-wing{visibility:visible;transform:none}
/* a desk narrower than the unfolded player (tablets in portrait): the wings shrink around their hinges */
.sm-win-amp.is-narrow:is(.is-open,.is-unfolding,.is-folding) .amp-wing{scale:.85}
.sm-win-amp.is-open .amp-wing-body{visibility:visible}
.sm-win-amp.is-open .amp-wing-plate{pointer-events:visiblePainted}
.sm-win-amp.is-open .amp-wing-body :is(button,input,.amp-pl){pointer-events:auto}
/* on the way out and back in, the controls ride along (not clickable) */
.sm-win-amp:is(.is-unfolding,.is-folding) :is(.amp-wing,.amp-wing-body){visibility:visible}
.sm-win-amp.is-folding .amp-wing-body *{pointer-events:none!important}
/* hovering the folded head (or a keyboard focus on it): the panel ends stick out a good 40-60 px from behind the
   cheeks and rattle, with yellow pull arrows on them. The sticking-out end is part of the head's click area then
   (a click on it unfolds too), so the pointer can go onto it without the peek running away. Beside the site's chaos
   panel the right one stops short of it (15.11.: --amp-peek-cut, set by slide-meowamp.js peekCut where the room
   beside the head is less than the peek; 0 everywhere else). */
.sm-win-amp.is-hover:not(.is-open):not(.is-folding) .amp-wing{visibility:visible}
.sm-win-amp.is-hover:not(.is-open):not(.is-folding) .amp-wing-l{transform:translateX(185px)}
.sm-win-amp.is-hover:not(.is-open):not(.is-folding) .amp-wing-r{transform:translateX(calc(-185px - var(--amp-peek-cut,0px)))}
.sm-win-amp.is-hover:not(.is-open):not(.is-folding) .amp-wing-plate{pointer-events:visiblePainted;cursor:pointer}
body.motion-ok .sm-win-amp.is-hover:not(.is-open):not(.is-folding) .amp-wing-l{animation:ampPeekL 1s steps(1,end) infinite}
body.motion-ok .sm-win-amp.is-hover:not(.is-open):not(.is-folding) .amp-wing-r{animation:ampPeekR 1s steps(1,end) infinite}
.amp-wing-tab{visibility:hidden}
.sm-win-amp.is-hover:not(.is-open):not(.is-folding):not(.is-unfolding) .amp-wing-tab{visibility:visible}
body.motion-ok .sm-win-amp.is-hover:not(.is-open):not(.is-folding) .amp-wing-tab>g{animation:ampTab .6s steps(1,end) infinite}
body.motion-ok .sm-win-amp.is-hover:not(.is-open):not(.is-folding) .amp-wing-tab>g:nth-child(2){animation-delay:-.4s}
body.motion-ok .sm-win-amp.is-hover:not(.is-open):not(.is-folding) .amp-wing-tab>g:nth-child(3){animation-delay:-.2s}
/* the clunky part: frame by frame, out, past the stop, back, a bounce; the head jolts when they hit */
body.motion-ok .sm-win-amp.is-unfolding .amp-wing-l{animation:ampOutL .72s steps(1,end) both}
body.motion-ok .sm-win-amp.is-unfolding .amp-wing-r{animation:ampOutR .72s steps(1,end) both}
body.motion-ok .sm-win-amp.is-folding .amp-wing-l{animation:ampInL .62s steps(1,end) both}
body.motion-ok .sm-win-amp.is-folding .amp-wing-r{animation:ampInR .62s steps(1,end) both}
body.motion-ok .sm-win-amp.is-unfolding .amp-head{animation:ampJolt .72s steps(1,end)}
body.motion-ok .sm-win-amp.is-folding .amp-head{animation:ampJoltIn .62s steps(1,end)}

/* engraved labels */
.amp-wlabel{display:flex;justify-content:space-between;align-items:baseline;gap:6px;font:700 10px/1 var(--sm-ui);letter-spacing:2px;color:#003300;text-shadow:0 1px 0 #ccff99;white-space:nowrap;user-select:none;pointer-events:none}
.amp-wlabel b{font:700 10px/1 var(--mono);letter-spacing:0;color:#ffffff;text-shadow:1px 1px 0 #003300}
.amp-wl-chaos{left:22px;top:19px;font:italic 400 19px/1 var(--heavy);letter-spacing:2px;color:#006600;text-shadow:1px 1px 0 #ccff99,-1px -1px 0 #003300}

/* left: the chaos dock. The read-out, the big slider, MORE CHAOS, calm and sound effects */
.amp-led{left:98px;top:13px;width:106px;height:28px;display:flex;align-items:center;justify-content:flex-end;padding:0 7px;overflow:hidden;background:#000000;border:2px solid #003300;border-radius:4px;
  box-shadow:inset 0 0 0 1px #336633,0 1px 0 #ccff99;color:#00ff00;font:700 17px/1 var(--mono);white-space:nowrap;text-shadow:0 0 5px #00ff00;pointer-events:none}
body.calm .amp-led [data-chaos-label]{display:none}
body.calm .amp-led::after{content:'ON A BREAK';color:#ffcc00;font-size:12px;text-shadow:none}
.sm-win-amp .amp-range{display:block;margin:0;padding:0;background:none;-webkit-appearance:none;appearance:none;cursor:pointer;--val:0}
.sm-win-amp .amp-chaos{left:16px;top:47px;width:192px;height:32px;cursor:ew-resize}
.amp-chaos::-webkit-slider-runnable-track{height:14px;border:2px solid #003300;border-radius:7px;box-shadow:0 1px 0 #ccff99,inset 0 2px 0 #000000;
  background:linear-gradient(90deg,#00ff00,#ffff00 55%,#ff3399) 0 0/calc(var(--val,0) * 100%) 100% no-repeat,repeating-linear-gradient(-45deg,#000000 0 5px,#003300 5px 10px)}
.amp-chaos::-webkit-slider-thumb{width:30px;height:30px;margin-top:-10px;border:0;-webkit-appearance:none;appearance:none;cursor:grab;filter:drop-shadow(1px 2px 0 #003300);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23ff3399' stroke='%23330033' stroke-width='1.6'/%3E%3Cg fill='%23ffccff'%3E%3Cellipse cx='10' cy='12.6' rx='3.6' ry='2.8'/%3E%3Ccircle cx='5.7' cy='8.7' r='1.6'/%3E%3Ccircle cx='8.4' cy='6.2' r='1.6'/%3E%3Ccircle cx='11.6' cy='6.2' r='1.6'/%3E%3Ccircle cx='14.3' cy='8.7' r='1.6'/%3E%3C/g%3E%3C/svg%3E") center/100% no-repeat}
.amp-chaos:active::-webkit-slider-thumb{cursor:grabbing;transform:scale(1.15) rotate(20deg)}
.amp-chaos::-moz-range-track{height:10px;border:2px solid #003300;border-radius:7px;background:repeating-linear-gradient(-45deg,#000000 0 5px,#003300 5px 10px)}
.amp-chaos::-moz-range-progress{height:10px;border-radius:7px 0 0 7px;background:linear-gradient(90deg,#00ff00,#ffff00 55%,#ff3399)}
.amp-chaos::-moz-range-thumb{width:24px;height:24px;border:2px solid #330033;border-radius:50%;background:#ff3399}
.sm-win-amp .amp-more{left:22px;top:83px;width:182px;height:34px;padding:0 0 1px;border:2px solid #660033;border-radius:17px;color:#660033;font:italic 400 19px/1 var(--heavy);letter-spacing:1px;white-space:nowrap;cursor:pointer;
  background:radial-gradient(ellipse at 40% 22%,#ffffff 0 7%,#ffccff 8% 30%,#ff99cc 62%,#cc3366 100%);box-shadow:inset -2px -3px 0 #cc3366,0 2px 0 #003300;text-shadow:0 1px 0 #ffccff}
.amp-more em{font-style:inherit;color:#cc0066}
.sm-win-amp .amp-more:hover{background:radial-gradient(ellipse at 40% 22%,#ffffff 0 10%,#ffccff 11% 40%,#ff99cc 70%,#cc3366 100%)}
.sm-win-amp .amp-more:active{box-shadow:inset 2px 3px 0 #cc3366;transform:translateY(1px)}
.sm-win-amp .amp-key{left:22px;width:182px;height:22px;margin:0;padding:0 8px;overflow:hidden;border:2px solid #000000;border-radius:11px;color:#ccff99;font:700 10px/1 var(--sm-ui);letter-spacing:1px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;
  background:linear-gradient(180deg,#336633,#003300);box-shadow:inset 0 1px 0 #66cc33,0 1px 0 #ccff99}
.sm-win-amp .amp-calm{top:125px}
.sm-win-amp .amp-sfx{top:152px}
.sm-win-amp .amp-key:hover{background:linear-gradient(180deg,#339933,#006600)}
.sm-win-amp .amp-key:active{box-shadow:inset 0 2px 0 #000000}
.sm-win-amp .amp-sfx[aria-pressed=false]{color:#669966}
body.calm .sm-win-amp .amp-calm{color:#ffff00;background:linear-gradient(180deg,#666600,#333300)}

/* right: the playlist (core's track buttons) and the volume (the site's 0-50, shown as 0-100 %) */
.amp-wl-pl{left:88px;top:16px;width:180px}
.amp-wl-pl b{font:700 9px/1 var(--sm-ui);letter-spacing:1px;color:#003300;text-shadow:0 1px 0 #ccff99}
.sm-win-amp .amp-pl{left:86px;top:32px;width:182px;height:98px;margin:0;padding:3px;overflow-y:auto;list-style:none;background:#000000;border:2px solid #003300;border-radius:4px;
  box-shadow:inset 0 0 0 1px #336633,0 1px 0 #ccff99;scrollbar-width:thin;scrollbar-color:#00cc00 #000000}
.amp-pl li{margin:0}
.sm-win-amp .amp-pl-row{display:flex;align-items:center;gap:4px;width:100%;height:22px;padding:0 5px;background:none;color:#00ff00;border:0;border-radius:0;font:700 11px/1 Arial,Helvetica,var(--sm-ui);text-align:left;white-space:nowrap;cursor:pointer}
.sm-win-amp .amp-pl-row:hover{background:#003300}
.sm-win-amp .amp-pl-row.active{background:#0000cc;color:#ffffff}
.amp-pl-n{min-width:14px}
.amp-pl-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.amp-pl-bpm{font-weight:400;color:#00cc00}
.amp-pl-row.active .amp-pl-bpm{color:#ccccff}
.amp-wl-vol{left:88px;top:139px;width:180px}
.sm-win-amp .amp-vol{left:86px;top:153px;width:182px;height:24px}
.amp-vol::-webkit-slider-runnable-track{height:10px;border:2px solid #003300;border-radius:5px;box-shadow:0 1px 0 #ccff99;
  background:linear-gradient(90deg,#00ff00,#00ff00) 0 0/calc(var(--val,0) * 100%) 100% no-repeat,#000000}
.amp-vol::-webkit-slider-thumb{width:18px;height:18px;margin-top:-6px;border:2px solid #660033;border-radius:50%;-webkit-appearance:none;appearance:none;
  background:radial-gradient(circle at 36% 28%,#ffffff 0 14%,#ffccff 15% 30%,#ff99cc 58%,#cc3366 100%)}
.amp-vol::-moz-range-track{height:6px;border:2px solid #003300;border-radius:5px;background:#000000}
.amp-vol::-moz-range-progress{height:6px;border-radius:5px 0 0 5px;background:#00ff00}
.amp-vol::-moz-range-thumb{width:14px;height:14px;border:2px solid #660033;border-radius:50%;background:#ff99cc}

.sm-desk .sm-win-amp :is(button,input):focus-visible{outline:2px dotted #ffff00;outline-offset:2px;box-shadow:none}
.sm-desk .sm-win-amp .amp-pl-row:focus-visible{outline-offset:-2px}
.sm-desk .sm-win-amp .amp-fold:focus-visible{outline-offset:0}

@keyframes ampBlink{50%{box-shadow:inset -2px -3px 0 #cc3366,0 1px 0 #99ff66}}
@keyframes ampHalo{0%{opacity:.9}50%{opacity:.4}}
@keyframes ampPeekL{0%{transform:translateX(185px)}22%{transform:translateX(177px) rotate(-1.5deg)}40%{transform:translateX(190px)}60%{transform:translateX(179px) rotate(1deg)}80%{transform:translateX(186px)}}
@keyframes ampPeekR{0%{transform:translateX(calc(-185px - var(--amp-peek-cut,0px)))}22%{transform:translateX(calc(-177px - var(--amp-peek-cut,0px))) rotate(1.5deg)}40%{transform:translateX(calc(-190px - var(--amp-peek-cut,0px)))}60%{transform:translateX(calc(-179px - var(--amp-peek-cut,0px))) rotate(-1deg)}80%{transform:translateX(calc(-186px - var(--amp-peek-cut,0px)))}}
@keyframes ampTab{0%{opacity:1}50%{opacity:.25}}
@keyframes ampOutL{
  0%{transform:translateX(196px) scaleY(.8)}8%{transform:translateX(240px) scaleY(.7)}16%{transform:translateX(230px) scaleY(.74) rotate(1deg)}
  26%{transform:translateX(184px) scaleY(.78)}36%{transform:translateX(122px) scaleY(.82) rotate(-1deg)}46%{transform:translateX(50px) scaleY(.86)}
  54%{transform:translateX(-14px) scaleY(.9) rotate(-2deg)}62%{transform:translateX(-14px) scaleY(1.12) rotate(-2deg)}70%{transform:translateX(7px) scaleY(.95) rotate(1deg)}
  80%{transform:translateX(-4px) scaleY(1.04)}90%{transform:translateX(1px) scaleY(.99)}100%{transform:none}}
@keyframes ampOutR{
  0%{transform:translateX(-196px) scaleY(.8)}8%{transform:translateX(-240px) scaleY(.7)}16%{transform:translateX(-230px) scaleY(.74) rotate(-1deg)}
  26%{transform:translateX(-184px) scaleY(.78)}36%{transform:translateX(-122px) scaleY(.82) rotate(1deg)}46%{transform:translateX(-50px) scaleY(.86)}
  54%{transform:translateX(14px) scaleY(.9) rotate(2deg)}62%{transform:translateX(14px) scaleY(1.12) rotate(2deg)}70%{transform:translateX(-7px) scaleY(.95) rotate(-1deg)}
  80%{transform:translateX(4px) scaleY(1.04)}90%{transform:translateX(-1px) scaleY(.99)}100%{transform:none}}
@keyframes ampInL{
  0%{transform:none}10%{transform:translateX(-8px) scaleY(1.06)}20%{transform:translateX(-8px) scaleY(.94) rotate(1deg)}32%{transform:translateX(46px) scaleY(.9)}
  44%{transform:translateX(120px) scaleY(.85) rotate(-1deg)}56%{transform:translateX(190px) scaleY(.8)}68%{transform:translateX(246px) scaleY(.74)}
  78%{transform:translateX(272px) scaleY(.7)}88%{transform:translateX(254px) scaleY(.7)}100%{transform:translateX(258px) scaleY(.7)}}
@keyframes ampInR{
  0%{transform:none}10%{transform:translateX(8px) scaleY(1.06)}20%{transform:translateX(8px) scaleY(.94) rotate(-1deg)}32%{transform:translateX(-46px) scaleY(.9)}
  44%{transform:translateX(-120px) scaleY(.85) rotate(1deg)}56%{transform:translateX(-190px) scaleY(.8)}68%{transform:translateX(-246px) scaleY(.74)}
  78%{transform:translateX(-272px) scaleY(.7)}88%{transform:translateX(-254px) scaleY(.7)}100%{transform:translateX(-258px) scaleY(.7)}}
@keyframes ampJolt{0%,52%{transform:none}54%{transform:translate(0,3px)}62%{transform:translate(1px,-2px)}70%{transform:translate(-1px,1px)}80%,100%{transform:none}}
@keyframes ampJoltIn{0%,76%{transform:none}78%{transform:translate(0,2px)}88%{transform:translate(0,-1px)}100%{transform:none}}

/* Pocket MEOWAMP: the original cat head and real controls, with the wings stacked underneath. */
@media(max-width:700px){
 .sm-desk .sm-win.sm-win-amp:not([hidden]){display:block!important;overflow:auto!important;background:linear-gradient(150deg,#002f33,#081230);border:2px outset #8cbd92;padding-bottom:22px;pointer-events:auto}
 .sm-win-amp .amp-head{position:relative!important;left:50%!important;top:0!important;transform:translateX(-50%)!important;animation:none!important;margin-bottom:8px}
 .sm-win-amp .amp-slot{position:relative!important;left:auto!important;right:auto!important;top:auto!important;margin:0 auto 12px;width:290px!important;height:224px!important;overflow:hidden!important}
 .sm-win-amp:not(.is-open) .amp-slot{display:none}
 .sm-win-amp.is-open .amp-wing{position:relative!important;left:0!important;top:0!important;transform:none!important;scale:1!important;animation:none!important;visibility:visible!important}
 .sm-win-amp .amp-fold{min-height:36px}.sm-win-amp .amp-earbtn{width:30px;height:30px;margin:-15px 0 0 -15px}.sm-win-amp .amp-pl button{min-height:36px}.sm-win-amp .amp-key{min-height:32px}
}

/* 63-catrooms.css */
/* SAD CAT DISCO · THE PURRROOMS (src/js/slide-catrooms.js): the fullscreen first-person walk you fall into
   when reality breaks on the /slide-a-meow/ desktop (its icon "The Purrrooms"). First the owner's title picture
   (full colour, cover-fitted), then the view: a small canvas scaled up in whole pixels; the HUD looks like the
   CATOS 2003 desktop. 256 colours: every colour here is web-safe (00/33/66/99/CC/FF), gradients only with hard
   stops, no opacity, and the HUD runs through the page's own posterise filter (#cr-256). Animations only under
   body.motion-ok. Desktop only. */
.cr{position:fixed;inset:0;z-index:20000;overflow:hidden;background:#000;color:#fff;font:13px/1.3 Tahoma,Verdana,'Segoe UI',Geneva,sans-serif;
  outline:0;cursor:default;user-select:none;-webkit-user-select:none;touch-action:none;overscroll-behavior:contain}
.cr-defs{position:absolute;width:0;height:0;overflow:hidden}
.cr-view{position:absolute;left:0;top:0;image-rendering:pixelated}
.cr.is-playing{cursor:grab}
.cr.is-dragging{cursor:grabbing}
.cr :focus-visible{outline:2px dotted #fff;outline-offset:2px;box-shadow:none}

/* ---------- the title picture (~2.5 s, or until a click or a key) */
.cr-splash{position:absolute;inset:0;background:#000;cursor:pointer}
.cr-splash picture,.cr-splash img{display:block;width:100%;height:100%}
.cr-splash img{object-fit:cover;object-position:50% 50%}
/* narrower than 16:10 (4:3, 5:4, portrait) the cover crop would cut the title and Mi-Do: the whole picture
   on the black ground instead (the sizes in slide-catrooms.js follow this) */
@media(max-aspect-ratio:1599/1000){.cr-splash img{object-fit:contain}}
.cr-splash-hint{position:absolute;left:50%;bottom:28px;margin:0;padding:7px 16px;transform:translateX(-50%);background:#000;color:#ffff99;border:1px solid #666633;
  font:700 15px/1.2 Tahoma,Verdana,sans-serif;letter-spacing:1px;white-space:nowrap;filter:url(#cr-256)}

/* ---------- the HUD */
.cr-hud{position:absolute;inset:0;pointer-events:none}
.cr-hud>*{position:absolute;filter:url(#cr-256)}
.cr-me{left:16px;top:16px;display:flex;align-items:center;gap:10px;padding:6px 14px 6px 6px;background:#000033;color:#ffffcc;border:2px solid #ff9933;box-shadow:3px 3px 0 #000}
.cr-me img{width:48px;height:48px;border:2px solid #fff;image-rendering:pixelated}
.cr-me b{display:block;font:700 17px/1.1 'Trebuchet MS',Tahoma,sans-serif;letter-spacing:1px}
.cr-me small{display:block;margin-top:2px;font:700 12px/1.2 'Courier New',monospace;color:#ffcc66}
/* the SNACK-O-METER: the word (FREEZING … HOT!), "warmer" / "colder", seven lamps from blue to red */
.cr-heat{right:16px;top:16px;display:grid;justify-items:end;gap:3px;min-width:176px;margin:0;padding:8px 12px 10px;background:#000033;color:#ffcc66;border:2px solid #ffcc00;
  box-shadow:3px 3px 0 #000;font:700 12px/1 'Courier New',monospace;text-align:right}
.cr-heat-lbl{letter-spacing:1px}
.cr-heat-word{font:700 26px/1 'Trebuchet MS',Tahoma,sans-serif;letter-spacing:1px;color:#99ccff}
.cr-heat[data-band="1"] .cr-heat-word{color:#66ccff}
.cr-heat[data-band="2"] .cr-heat-word{color:#ffcc00}
.cr-heat[data-band="3"] .cr-heat-word{color:#ff9900}
.cr-heat[data-band="4"] .cr-heat-word{color:#ff3300}
.cr-heat-trend{min-height:13px;font:700 13px/1 'Courier New',monospace;color:#ffffcc}
.cr-heat-bar{display:flex;gap:3px;margin-top:2px}
.cr-heat-bar i{width:20px;height:10px;background:#333333;border:1px solid #666666}
.cr-heat-bar i.is-on{border-color:#ffffcc}
.cr-heat-bar i.is-on:nth-child(1){background:#0066ff}
.cr-heat-bar i.is-on:nth-child(2){background:#0099ff}
.cr-heat-bar i.is-on:nth-child(3){background:#66ccff}
.cr-heat-bar i.is-on:nth-child(4){background:#ffcc00}
.cr-heat-bar i.is-on:nth-child(5){background:#ff9900}
.cr-heat-bar i.is-on:nth-child(6){background:#ff6600}
.cr-heat-bar i.is-on:nth-child(7){background:#ff0000}
.cr-wake{right:16px;bottom:16px;pointer-events:auto;padding:9px 16px;background:#cc0000;color:#fff;border:2px solid #fff;border-radius:3px;box-shadow:3px 3px 0 #000;
  font:700 15px/1 'Trebuchet MS',Tahoma,sans-serif;letter-spacing:1px;cursor:pointer}
.cr-wake small{margin-left:6px;color:#fff;font:400 12px Tahoma,sans-serif;letter-spacing:0}
.cr-wake:hover{background:#990000}
.cr-hint{left:50%;top:22px;width:max-content;max-width:calc(100vw - 520px);margin:0;padding:8px 14px;transform:translateX(-50%);background:#000;color:#ffffcc;border:1px solid #999966;white-space:normal;text-align:center;font:13px/1.5 Tahoma,Verdana,sans-serif}
.cr-hint.is-off{display:none}
.cr-hint kbd{padding:0 5px;background:#ffffcc;color:#000;border:1px solid #999966;border-bottom-width:2px;font:700 11px 'Courier New',monospace}
.cr-msg{left:50%;top:92px;display:none;max-width:max(260px,min(720px,calc(100vw - 500px)));margin:0;padding:7px 16px;transform:translateX(-50%);background:#000;color:#ffff99;border:1px solid #666633;
  font:700 15px/1.35 Tahoma,Verdana,sans-serif;text-align:center}
.cr-msg.is-on{display:block}
.cr-note{left:50%;bottom:calc(26vh + 24px);width:min(440px,80vw);padding:18px 22px 16px;transform:translateX(-50%) rotate(-1.5deg);background:#ffffcc;color:#333366;border:1px solid #999966;
  box-shadow:5px 6px 0 #000;font:21px/1.3 var(--comic,'Comic Sans MS',cursive);text-align:center}
.cr-note::before{content:'';position:absolute;left:50%;top:-9px;width:70px;height:18px;transform:translateX(-50%) rotate(2deg);background:#cccccc;border:1px solid #999999}
.cr-note p{margin:0}
.cr-note[data-kind=note]{top:168px;bottom:auto}
.cr-note[data-kind=photo]{transform:translateX(-50%);background:#fff;color:#000;border:4px solid #663300;font:15px/1.4 Tahoma,Verdana,sans-serif}
.cr-note[data-kind=photo]::before{display:none}
/* narrow desktops (up to 900 px): between YU-NA and the meter the controls wrap into a tall box that ran into the
   message, and the message into the first note. The controls go to the bottom left (beside WAKE UP), the first
   note sits where every other note sits (above the paws). */
@media(max-width:900px){
  .cr-hint{left:16px;top:auto;bottom:16px;max-width:calc(100vw - 200px);transform:none;text-align:left}
  .cr-note[data-kind=note]{top:auto;bottom:calc(26vh + 24px)}
}

/* ---------- behind the EXIT: what the snack was (on its own white ground, through the posterise filter) */
.cr-end{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;background:#fff;color:#000;text-align:center;cursor:pointer;filter:url(#cr-256)}
.cr-end[hidden]{display:none}
.cr-end-dot{display:block;width:56px;height:30px;border-radius:50%;background:radial-gradient(closest-side,#ffcccc 0 22%,#ff0000 23% 46%,#cc0000 47% 72%,#990000 73% 100%)}
.cr-end-big{max-width:15em;margin:0;font:700 clamp(30px,4.4vw,60px)/1.1 'Trebuchet MS',Tahoma,sans-serif;color:#cc0000;letter-spacing:.5px}
.cr-end-sub{max-width:34em;margin:0;font:21px/1.35 var(--comic,'Comic Sans MS',cursive);color:#333366}
.cr-end-time{margin:0;font:700 13px 'Courier New',monospace;color:#666633}
.cr-end-hint{margin:10px 0 0;padding:6px 14px;background:#000;color:#ffff99;font:700 14px Tahoma,Verdana,sans-serif}

/* ---------- motion (never in calm mode) */
body.motion-ok .cr-splash{animation:crOn .36s steps(6) both}
body.motion-ok .cr-splash-hint{animation:crBlink 1.2s steps(1) .8s infinite}
body.motion-ok .cr-heat[data-band="4"] .cr-heat-word{animation:crHot .3s steps(2) infinite}
body.motion-ok .cr-msg.is-on{animation:crBlinkIn .24s steps(3)}
body.motion-ok .cr-end-big{animation:crPop .3s steps(4) both}
body.motion-ok .cr-end-dot{animation:crHot .24s steps(2) infinite}
@keyframes crOn{0%{clip-path:inset(49.5% 0 49.5% 0)}40%{clip-path:inset(49.5% 0 49.5% 0)}100%{clip-path:inset(0)}}
@keyframes crBlink{50%{visibility:hidden}}
@keyframes crHot{0%{translate:0 0}50%{translate:2px -1px}}
@keyframes crPop{0%{scale:.6}100%{scale:1}}
@keyframes crBlinkIn{0%{visibility:hidden}50%{visibility:visible}}

.cr-touch-pad{display:none}
@media(max-width:700px),(pointer:coarse){.cr-touch-pad{display:grid;grid-template-columns:repeat(3,46px);gap:5px;position:absolute;left:12px;bottom:16px;pointer-events:auto}.cr-touch-pad button{width:46px;height:44px;border:2px outset #fff;background:#d1d19b;color:#19190d;font:900 18px Tahoma,sans-serif;touch-action:none}.cr-touch-pad [data-cr-walk=up]{grid-column:2}.cr-touch-pad [data-cr-walk=left]{grid-column:1}.cr-touch-pad [data-cr-meow]{grid-column:1/4;width:auto;font-size:13px}.cr-hint{display:none}.cr-wake{right:10px;bottom:18px;min-height:44px}.cr-me{top:12px;left:10px}.cr-me img{width:38px;height:38px}.cr-heat{right:10px;top:12px;max-width:150px}.cr-note{max-width:90vw}}
