.actionLegend{position:relative;width:1080px;height:1920px;overflow:hidden;background:transparent;isolation:isolate}.actionLegend *{box-sizing:border-box}.actionLegendBlock{position:absolute;display:flex;align-items:center;transform-origin:center;background:transparent;user-select:none}.legendArt{width:65%;height:100%;object-fit:contain;flex-shrink:0;pointer-events:none;filter:drop-shadow(0 4px 3px #0005)}.legendNumbers{position:relative;width:35%;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:12px;z-index:1}.legendValue,.legendActionName{font-family:var(--legend-font,'Luckiest Guy'),sans-serif;font-weight:400;line-height:1.04;paint-order:stroke fill;-webkit-text-stroke:var(--legend-outline,7px) #000;color:var(--legend-color,#fff);text-align:center;white-space:nowrap;text-shadow:0 4px 0 #000}.legendGiftRow{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;width:100%}.legendGiftRow img{width:84px;height:84px;object-fit:contain;pointer-events:none}.legendActionName{color:white;font-size:30px;white-space:normal;max-width:230px}.isRight{flex-direction:row-reverse}.isEditable{cursor:grab;touch-action:none;outline:2px solid transparent}.isEditable:hover{outline-color:#ffffff55}.isSelected{outline:4px solid #c5a0ff!important;outline-offset:4px;z-index:2}.isOff{opacity:.25}.legendResize{display:none;position:absolute;bottom:-16px;right:-16px;background:#c5a0ff;border:3px solid white;color:#140b21;width:45px;height:45px;border-radius:50%;align-items:center;justify-content:center;font:26px system-ui;cursor:nwse-resize}.isSelected .legendResize{display:flex}

@font-face{font-family:Outfit;src:url(../fonts/Outfit.ttf) format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:'Luckiest Guy';src:url(../fonts/LuckiestGuy.ttf) format('truetype');font-display:swap}
@font-face{font-family:Bangers;src:url(../fonts/Bangers-Regular.ttf) format('truetype');font-display:swap}
@font-face{font-family:'Bebas Neue';src:url(../fonts/BebasNeue-Regular.ttf) format('truetype');font-display:swap}
.legendValue{font-size:calc(var(--legend-value-size,60px) * var(--legend-card-scale,1))}.legendGiftRow img{width:calc(84px * var(--legend-card-scale,1));height:calc(84px * var(--legend-card-scale,1))}.legendActionName{font-size:calc(30px * var(--legend-card-scale,1))}

/* Independently editable pieces; positions remain relative to their action block. */
.actionLegendBlock{display:block}.legendPart{position:absolute;transform-origin:center;touch-action:none}.legendPart[hidden]{display:none!important}.legendArtPart{width:65%;height:100%}.legendArtPart .legendArt{width:100%;height:100%;display:block;object-fit:contain}.legendGift{width:calc(84px * var(--legend-card-scale,1));height:calc(84px * var(--legend-card-scale,1));object-fit:contain}.legendPart.legendValue{z-index:2}.legendPart.legendActionName{width:68%;max-width:none;z-index:2}.isEditable .legendPart{cursor:move;outline:1px dashed transparent}.isEditable .legendPart:hover{outline-color:#d3b2ff99}.isEditable .isPartSelected{outline:3px dashed #60e5c0;outline-offset:5px}.isEditable .legendGift{pointer-events:auto}.isEditable .legendPart[hidden]{display:block!important;opacity:.2}.legendArtPart img{pointer-events:none}

.legendValue.hasCustomText{white-space:normal;width:calc(360px * var(--legend-card-scale,1));overflow-wrap:anywhere}.legendActionName{overflow-wrap:anywhere}
