/* Table rules: turn-order extras (groups, surprise, lair, reaction and legendary pips), HUD bits,
   effect tooltips. Matches app.css tokens. */

/* ---- turn order ---- */
.tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-main .turn-name { flex: none; }
.tr-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.tr-tag { font: 700 7.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; border: 1px solid var(--rule-2); color: var(--dim); line-height: 1.4; }
.tr-tag.lair { color: #c9b7f2; border-color: #5a4a86; background: rgba(110, 85, 180, .14); }
.tr-tag.group { color: var(--c); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.tr-tag.surprised { color: #ffb35c; border-color: #7a5326; background: rgba(224, 160, 48, .12); }
.turn-row.tr-grouped { box-shadow: inset 3px 0 var(--gc); }
.turn-row.tr-grouped.active { box-shadow: inset 3px 0 var(--gc), inset 0 0 0 1px var(--accent-dim); }
.turn-row.tr-surprised .turn-img { opacity: .55; }
.tr-lair-img { display: grid; place-items: center; color: #c9b7f2; font-size: 15px; background: radial-gradient(circle at 40% 35%, #3a2d5c, #15111f) !important; }
.tr-pick { margin: 0; width: 13px; height: 13px; flex: none; accent-color: var(--accent); cursor: pointer; }
.tr-surprise { width: 20px; padding: 2px 0 !important; font: 800 11px var(--sans) !important; color: var(--dim-2); background: transparent; border-color: transparent; flex: none; }
.tr-surprise:hover { color: #ffb35c; border-color: var(--rule-2); }
.tr-surprise.on { color: #1a1206; background: #e0a030; border-color: #e0a030; }
.tr-groupbar { padding: 6px 10px; gap: 6px; align-items: center; border-bottom: 1px solid var(--rule); background: rgba(220, 179, 92, .05); }
.tr-head-note { font: 700 8px var(--mono); letter-spacing: .12em; color: #ffb35c; text-transform: uppercase; }

/* reaction pip */
.tr-react { width: 18px; height: 18px; padding: 0 !important; border-radius: 50%; font: 800 8.5px var(--sans) !important; line-height: 16px; text-align: center; color: #0d1a10; background: #5bbf5b; border: 1px solid #3f8f3f; flex: none; cursor: pointer; }
.tr-react.small { width: 15px; height: 15px; line-height: 13px; font-size: 7.5px !important; }
.tr-react.used { color: var(--dim-2); background: transparent; border-color: var(--rule-2); text-decoration: line-through; }
.tr-react:disabled { cursor: default; opacity: 1; }
.tr-react:not(:disabled):hover { box-shadow: 0 0 0 2px rgba(91, 191, 91, .25); }

/* legendary action pips (diamonds) */
.tr-pips { display: inline-flex; align-items: center; gap: 3px; padding: 0 2px; }
.tr-pip { width: 10px; height: 10px; padding: 0 !important; border-radius: 1px; transform: rotate(45deg); background: #e8c34a; border: 1px solid #8a6d1f; flex: none; cursor: pointer; min-width: 0; }
.tr-pip.used { background: rgba(10, 12, 16, .85); border-color: rgba(232, 195, 74, .55); }
.tr-pip:disabled { cursor: default; opacity: 1; }
.tr-pip:not(:disabled):hover { box-shadow: 0 0 0 2px rgba(232, 195, 74, .3); }
#hud .tr-pip { width: 11px; height: 11px; margin: 0 2px; }
#hud .tr-react { width: 20px; height: 20px; line-height: 18px; }

/* hide / reveal on the HUD */
#hud .tr-hide { display: inline-grid; place-items: center; padding: 3px 6px; }
.tr-hide .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tr-hide.on { color: #d8e4f0; background: #3a4a62; border-color: #9fb4c8; }

/* effect tooltip (shares .hover-card's frame) and the effect chips added to token hover cards */
.tr-tip { max-width: 280px; }
.tr-tip-dot { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--c); color: var(--c); background: rgba(10, 12, 16, .9); font: 700 12px var(--sans); font-style: normal; }
.tr-tip-desc { color: var(--ink-2); font-size: 11.5px; line-height: 1.4; }
.tr-hc-effects { display: flex; flex-wrap: wrap; gap: 4px; }
.tr-hc-effect { font: 9px var(--mono); padding: 1px 6px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.tr-hc-effect small { color: var(--dim); font-size: 8.5px; }
.tr-hc-hidden { color: #9fb4c8; border-color: #4a5a72; }
