.ghost-colour-mark{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-width:0;min-height:37px;padding:4px 0;border-radius:8px;font-size:8px;line-height:1.15;border:1px dashed #e4b7ff88;background:#78549c33}
.ghost-colour-mark>span:first-child{width:14px;height:14px;flex:none;border-radius:50%;background:var(--ghost-mark,#d6bcf2);box-shadow:0 0 0 1px #fff5}
.ghost-colour-mark>span:last-child{max-width:100%;overflow-wrap:anywhere}
.ghost-colour-mark[data-colour='']>span:first-child{background:conic-gradient(#55c879,#65c6e5,#efa4d6,#ff6c76,#ffc063,#55c879)}
[data-colour=Green]{--ghost-mark:#55c879}[data-colour=Pink]{--ghost-mark:#efa4d6}[data-colour=Blue]{--ghost-mark:#65c6e5}[data-colour=Red]{--ghost-mark:#ff6c76}[data-colour=Orange]{--ghost-mark:#ffc063}
.ghost-colour-mark[data-colour]:not([data-colour='']){border-style:solid;border-color:var(--ghost-mark);color:var(--ghost-mark)}
.ghost-clue-mark{font-size:10px;color:var(--ghost-mark);text-align:center;line-height:1.2}
#ghost-colour-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #e4b7ff88;border-radius:22px;padding:24px}
#ghost-colour-dialog::backdrop{background:#120c22b0;backdrop-filter:blur(5px)}
#ghost-colour-dialog h2{clear:both;padding-top:12px;font-size:24px;margin-bottom:6px}
#ghost-colour-dialog p{margin:8px 0 18px}
.ghost-colour-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:18px}
.ghost-colour-choices>button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 3px;min-width:0;font-size:12px;overflow-wrap:anywhere}
.ghost-colour-choices .tile{display:block;width:52px;max-width:100%;height:auto;aspect-ratio:1/1.04;pointer-events:none}
.ghost-colour-choices>button[aria-pressed=true]{outline:2px solid #f9c083;background:#f9c08322}
#clear-ghost-colour{width:100%;min-height:42px}
@media(max-width:660px){#ghost-colour-dialog{padding:15px}.ghost-colour-choices{gap:5px}.ghost-colour-choices>button{font-size:10px}.ghost-colour-mark{font-size:10px;min-height:37px}}

