/* Portals (portals.js): a turning vortex over the cell, with its Greek letter. */
.portal-layer {position:absolute!important;inset:0;z-index:4;pointer-events:none;clip-path:none!important}
.portal-mark {position:absolute;aspect-ratio:1;transform:translate(-50%,-50%)}
.portal-mark .portal-picture {position:absolute;inset:-12%;width:124%;height:124%;overflow:visible}
.portal-arms,.portal-sparks,.portal-halo {transform-box:view-box;transform-origin:0 0}
.portal-arms {animation:portal-turn 5s linear infinite}
.portal-sparks {animation:portal-turn 7s linear infinite reverse;opacity:.85}
.portal-halo {animation:portal-breathe 2.6s ease-in-out infinite alternate}
@keyframes portal-turn {to {transform:rotate(-360deg)}}
@keyframes portal-breathe {from {transform:scale(.9);opacity:.6} to {transform:scale(1.06);opacity:1}}
.portal-letter {font:800 36px Georgia,'Times New Roman',serif;fill:#fff;stroke:#120726;stroke-width:7px;paint-order:stroke;stroke-linejoin:round}
.portal-picture.is-lit .portal-sparks {opacity:1;stroke-width:5}
/* Colours on their way through: arcs of the rim in their own colour. */
.portal-mark.is-used .portal-sparks {opacity:.35}
html:root[data-design] .btn.portal-help {position:absolute;z-index:6;top:8px;right:8px;display:grid;place-items:center;width:34px;height:34px;min-width:0;min-height:0;margin:0;padding:0;border-radius:50%;font-weight:800;font-size:1rem;line-height:1}
html:root[data-design] .btn.portal-help::after {content:'';position:absolute;inset:-5px}
html:root[data-design] #portal-help-dialog {width:min(460px,calc(100vw - 24px))}
@media(prefers-reduced-motion:reduce) {.portal-arms,.portal-sparks,.portal-halo {animation:none}}
