:root {
 --edge-light: #86edf2;
 --unison-light: #dec0ff;
 --collaboration-light: #ffcd72;
 --symbol-ink: #161923;
}

.hand-symbol-guide {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 1px;
 margin: 4px 0 1px;
 overflow: hidden;
 border: 1px solid #ad947254;
 border-radius: 3px;
 background: #645342;
 font-family: var(--sans);
}
.hand-symbol-guide > span {
 display: flex;
 align-items: center;
 gap: 7px;
 padding: 4px 7px;
 background: #191c23;
}
.hand-symbol-guide > .mark-unison {background: #231e28;}
.hand-symbol-guide > .mark-collaboration {grid-column: 1 / -1; background: #2b2218;}
.hand-symbol-guide > .mark-collaboration > span {display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px;}
.hand-symbol-guide b,.hand-symbol-guide small {display: block;}
.hand-symbol-guide b {font-size: 11px; line-height: 1.4; font-weight: 650;}
.hand-symbol-guide em {margin-left: .55em; font-size: 9px; font-style: normal; font-weight: 400; color: #d3c4de;}
.hand-symbol-guide small {color: #f2e8d9; font-size: 10px; line-height: 1.5;}
.hand-symbol-guide i,.mark-signs i,.aid-symbol i,.clash-symbol-bonus i {
 font-family: system-ui,sans-serif;
 font-style: normal;
 font-weight: 700;
}
.hand-symbol-guide i {
 display: grid;
 place-items: center;
 width: 20px;
 height: 20px;
 flex-shrink: 0;
 border: 1px solid currentColor;
 border-radius: 3px;
 font-size: 15px;
}
.hand-symbol-guide .mark-unison i {border-radius: 50%;}
.mark-edge,.aid-symbol.mark-edge,.clash-symbol-bonus.mark-edge {color: var(--edge-light);}
.mark-unison,.aid-symbol.mark-unison,.clash-symbol-bonus.mark-unison {color: var(--unison-light);}
.mark-collaboration,.aid-symbol.mark-collaboration,.clash-symbol-bonus.mark-collaboration {color: var(--collaboration-light);}
.aid-symbol.unison-replay {
 justify-self:start;max-width:100%;min-height:28px;padding:2px 6px;margin-block:2px;text-align:start;
 border:1px solid #dec0ff88;border-radius:2px;background:#261d29e8;
}
.unison-replay span {margin-inline-start:2px;color:#fff1d9;white-space:nowrap;}
.aid-symbol.unison-replay.mark-collaboration {border-color:#d5ad72;background:#35261ee8;}

.ritual-table .hand-item.eligible .hand-card {
 border-color: #c1a57b;
 box-shadow: 0 2px 4px #21160e99;
}
.ritual-table .hand-item.selected .hand-card {
 border-color: #ffdf99;
 box-shadow: 0 0 0 2px #ffe2a2;
}
.ritual-table .selection-check,.lesson-hand-tag,.private-partner {z-index: 3;}
.pile-grid button > .pile-print,.flip-print {position: relative;display: block;}
.pile-grid button > .pile-print {margin: 0;}
.partner-marks {
 position: absolute;
 z-index: 2;
 inset: 0;
 border-radius: inherit;
 pointer-events: none;
}
.partner-marks::before,.partner-marks::after {
 position: absolute;
 inset: 0;
 border-radius: inherit;
}
.partner-marks[data-edge]::before {
 content: '';
 border: 2px solid var(--edge-light);
 box-shadow: inset 0 0 4px #168c98, 0 0 5px #48dce0c9;
}
.partner-marks[data-unison]::after {
 content: '';
 border: 2px dashed #d6aaff;
 box-shadow: inset 0 0 3px #523368, 0 0 4px #be94de99;
}
.partner-marks[data-unison="ready"]::after {
 border-style: solid;
 border-color: #ebcdff;
 box-shadow: inset 0 0 4px #8e52b5, 0 0 7px #ce8ff9;
}
.partner-marks[data-edge][data-unison]::after {
 inset: 3px;
 border-width: 1.5px;
 box-shadow: inset 0 0 3px #754d8f;
}
.partner-marks[data-edge][data-unison="ready"]::after {border-width: 2px;}
.mark-signs {
 position: absolute;
 z-index: 1;
 bottom: 16%;
 left: 2px;
 display: flex;
 align-items: center;
 gap: 1px;
 padding: 1px 3px;
 border-radius: 0 3px 3px 0;
 background: #151824f5;
 box-shadow: 0 1px 3px #0709139e;
}
.mark-signs i {display: block; min-width: .9em; font-size: 13px; line-height: 1.05; text-align: center;}
.partner-marks[data-collaboration="building"] .mark-collaboration {border-bottom: 1px dotted currentColor;}
.partner-marks[data-collaboration="ready"] .mark-collaboration {background: var(--collaboration-light); color: #2b2218; border-radius: 2px;}
.clash-ally .partner-marks[data-edge][data-unison]::after {inset: 2px; border-width: 1px;}
.clash-ally .mark-signs {left: -1px; bottom: -3px; padding: 0 1px; gap: 0; border-radius: 2px;}
.clash-ally .mark-signs i {font-size: 8px;}
.power-mark-names {font: 500 .78em/1.4 var(--sans); color: #dad1eb;}
@media (max-width: 360px) {
 .hand-symbol-guide > span {gap: 4px; padding-inline: 4px;}
 .hand-symbol-guide i {width: 16px; height: 16px; font-size: 12px;}
}
