/* Engine artwork: keep wall faces, object fronts and game pieces as separate layers. */
body.play-page .demo-cell-layer{z-index:auto}
body.play-page .demo-cell-layer .demo-cell.has-person,
body.play-page .demo-cell-layer .demo-cell.is-note,
body.play-page .demo-cell-layer .demo-cell.has-exclusions,
body.play-page .demo-cell-layer .demo-cell.is-cross{z-index:3}
body.play-page .demo-object-fronts,body.play-page .demo-object-pulses{position:absolute;inset:0;pointer-events:none;z-index:2}
body.play-page .demo-object-front{position:absolute;display:block;overflow:hidden;pointer-events:none}
body.play-page .demo-object-front[hidden]{display:none!important}
body.play-page .demo-object-front-image{position:absolute;display:block;max-width:none;object-fit:fill;pointer-events:none;user-select:none}
body.play-page .demo-object-pulse{position:absolute;display:block;max-width:none;object-fit:fill;transform-origin:50% 90%;will-change:transform;pointer-events:none;user-select:none}

/* One text flow: highlighted phrases are yellow, and only object spans have an underline. */
body.play-page .demo-clue{height:auto;max-height:none;overflow:visible}
body.play-page .demo-clue .demo-clue-text{height:auto;max-height:none;overflow:visible;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.35;color:#fff}
body.play-page .demo-clue .demo-clue-keyword{color:#fff07a;background:transparent;padding:0;border-radius:0;text-decoration:none;font-weight:inherit;box-shadow:none}
body.play-page .demo-clue .demo-clue-object{display:inline;color:inherit;background:transparent;border:0;border-radius:0;padding:4px;margin:-4px;box-shadow:none;cursor:pointer;box-decoration-break:clone;-webkit-box-decoration-break:clone;text-decoration-line:underline;text-decoration-color:#fff07a;text-decoration-thickness:max(2.5px,.115em);text-underline-offset:.16em;text-decoration-skip-ink:none;touch-action:manipulation}
body.play-page .demo-clue .demo-clue-object:focus-visible{outline:2px dashed #fff8df;outline-offset:3px}
body.play-page .demo-clue .demo-clue-object:is(:hover,:active){color:#fff07a;background:transparent}

/* Small note faces match the game's grey portraits on each person's own colour. */
body.play-page .demo-note-marks{display:grid;grid-template-columns:repeat(var(--mark-columns,2),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);align-items:center;justify-items:center;gap:2%;padding:3%;pointer-events:none}
body.play-page .demo-note-marks[data-mark-count="1"]{grid-template-columns:1fr;padding:16%}
body.play-page .demo-note-marks>.demo-mark-chip{position:relative;display:block;width:100%;height:auto;max-height:100%;aspect-ratio:1;border:1px solid #6c6770;border-radius:50%;background:var(--note-color,#b7a0d0);box-shadow:0 1px 2px #23142c66;overflow:visible}
body.play-page .demo-note-marks .demo-mark-portrait{position:absolute;display:block;inset:0;width:100%;height:100%;border:0;border-radius:50%;background:var(--note-color,#b7a0d0);box-shadow:none;overflow:hidden}
body.play-page .demo-note-marks .demo-mark-portrait>.demo-mark-image{position:absolute;display:block;max-width:none;border:0;border-radius:0;background:none;box-shadow:none;filter:grayscale(1);object-fit:fill}
body.play-page .demo-note-marks .demo-mark-chip>.demo-mark-cross{position:absolute;display:block;right:-10%;bottom:-9%;width:56%;height:56%;border:0;border-radius:0;background:transparent;box-shadow:none;object-fit:contain;filter:none}

/* The same picker handles a fifth note and erasing one mark at a time. */
body.play-page .demo-note-picker{width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:30px 24px 24px;border:1px solid #9978be;border-radius:22px;background:#211237;color:#fff8df;overflow-y:auto;text-align:center;box-shadow:0 14px 60px #130b27aa}
body.play-page .demo-note-picker::backdrop{background:rgba(10,8,26,.92)}
body.play-page .demo-note-picker h2{margin:5px 25px 12px;color:#ffdf70;font:32px/1.1 var(--display);text-align:center}
body.play-page .demo-note-picker>#demo-note-pick-description{margin:0 auto 22px;max-width:40ch;color:#fff8df;font-size:15px;line-height:1.55}
body.play-page .demo-note-pick-list{display:grid;grid-template-columns:repeat(var(--pick-columns,2),minmax(0,1fr));gap:22px 20px;justify-items:center;margin:20px auto 26px;max-width:400px}
body.play-page .demo-note-pick-list>.demo-note-pick-person{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-width:0;padding:5px 2px;border:0;border-radius:12px;background:transparent;color:#fff8df;box-shadow:none;cursor:pointer;font:18px/1.2 var(--display)}
body.play-page .demo-note-pick-list>.demo-note-pick-person:is(:hover,:active,:focus-visible){background:#ffffff0d;color:#fff8df;box-shadow:none;transform:none}
body.play-page .demo-note-pick-disc{position:relative;display:block;width:clamp(68px,21vw,120px);height:auto;aspect-ratio:1;max-width:100%;border:3px solid #bca6cd;border-radius:50%;background:var(--note-color,#b7a0d0);box-shadow:0 5px 0 #10091c}
body.play-page .demo-note-pick-portrait{position:absolute;inset:0;display:block;border-radius:50%;background:var(--note-color,#b7a0d0);overflow:hidden}
body.play-page .demo-note-pick-portrait>.demo-note-pick-image{position:absolute;display:block;max-width:none;filter:grayscale(1);object-fit:fill}
body.play-page .demo-note-pick-disc>.demo-note-pick-cross{position:absolute;display:block;right:-8%;top:-6%;width:31%;height:31%;padding:1px;border:2px solid #f6d6dc;border-radius:50%;background:#dd3952;box-shadow:0 2px 0 #810e31;object-fit:contain}
body.play-page .demo-note-pick-name{display:block;max-width:100%;overflow-wrap:anywhere}
body.play-page .demo-note-picker>.demo-note-pick-back{display:block;width:100%;min-height:48px;padding:12px;border:1px solid #ae85e3;border-radius:11px;background:#7545bb;color:#fff;box-shadow:0 3px 0 #130723;font:18px/1.2 var(--display)}
body.play-page .demo-note-picker>.demo-note-pick-back:is(:hover,:focus-visible,:active){background:#8655cc;color:#fff}
@media(max-width:399px){body.play-page .demo-note-picker{padding:25px 16px 20px}body.play-page .demo-note-picker h2{font-size:29px}body.play-page .demo-note-picker>#demo-note-pick-description{font-size:13px}body.play-page .demo-note-pick-list{gap:20px 13px}body.play-page .demo-note-pick-list>.demo-note-pick-person{font-size:16px}}
@media(prefers-reduced-motion:reduce){body.play-page .demo-object-pulse{display:none!important;will-change:auto}}
