/* Code-native effect receipts float over the pile, never the hand or controls. */
.effect-feed{position:fixed;z-index:25;top:105px;left:50%;transform:translateX(-50%);width:min(360px,calc(100% - 30px));pointer-events:none;display:grid;gap:5px}
.effect-feed[hidden]{display:none}.special-effect{display:flex;align-items:center;gap:9px;background:var(--paper);border:2px solid var(--ink);border-radius:16px;padding:8px 10px;box-shadow:0 3px var(--ink);font-size:11px;line-height:1.35}.special-effect strong{font-size:10px;text-transform:uppercase;letter-spacing:.5px}.special-effect p{margin:2px 0 0;line-height:1.35}.effect-icon{flex-shrink:0;min-width:36px;height:36px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:12px;background:var(--yellow);font-size:23px;font-weight:950}.effect-reverse .effect-icon{background:var(--table)}.effect-skip .effect-icon{background:var(--pink)}.effect-history article{padding:10px 0;border-bottom:1px solid #4a315f33}.effect-history p{font-size:13px}.special-effect:not(:last-child){background:#f4edff;font-size:10px;padding:5px 9px}.special-effect:not(:last-child) .effect-icon{height:27px;min-width:30px;font-size:18px}@media(min-width:801px){.effect-feed{left:auto;right:max(25px,calc((100vw - 1056px)/2));transform:none;top:210px;width:270px}}@media(max-height:650px){.effect-feed{top:82px}.special-effect{font-size:10px;padding:5px 8px}.special-effect strong{font-size:9px}.effect-icon{height:28px;min-width:30px;font-size:20px}}
.effect-suit{flex-shrink:0;font-size:30px;line-height:1;color:var(--accent);text-shadow:1px 2px var(--yellow)}.effect-penalty .effect-icon{box-shadow:-3px 3px 0 var(--paper),-5px 5px 0 var(--ink)}
/* Long grouped plays stay within the board; the ✦ review retains full text. */
.special-effect p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.special-effect:not(:last-child) p{-webkit-line-clamp:2}.special-effect>div{min-width:0}.special-effect strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Primary effects are actual on-board choreography, not notification cards. */
body:not(.reduce-motion) .effect-feed{width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;border:0}
@media(prefers-reduced-motion:reduce){body:not(.reduce-motion) .effect-feed{width:min(360px,calc(100% - 30px));height:auto;overflow:visible;clip-path:none}}
.board-effects-layer{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:24}.board-effect-scene{position:absolute;pointer-events:none;contain:layout style;isolation:isolate}.board-fx{position:absolute;left:0;top:0;display:grid;place-items:center;transform-origin:center;pointer-events:none;font-weight:950;line-height:1;will-change:transform,opacity;color:var(--ink);text-shadow:2px 2px 0 var(--paper),-2px -2px 0 var(--paper)}.board-fx svg{width:100%;height:100%;overflow:visible}.board-fx.burst{font-size:58px;color:#c4397a;text-shadow:3px 3px 0 var(--paper),-3px -3px 0 var(--paper),5px 5px 0 var(--ink);z-index:4}.board-fx.spark{font-size:26px;color:var(--yellow)}.board-fx.stream-card{height:44px!important;border:2px solid var(--ink);border-radius:7px;background:repeating-linear-gradient(120deg,var(--pink) 0 6px,var(--yellow) 6px 12px);font-size:24px;box-shadow:0 3px var(--ink);text-shadow:1px 1px var(--paper);z-index:3}.board-fx.target-ring{border:5px solid var(--pink);border-radius:50%;font-size:30px;background:#fffdf1bb;z-index:5}.board-fx.orbit-arrow{font-size:48px;color:#6942b9;text-shadow:3px 3px var(--yellow),-2px -2px var(--paper)}.board-fx.reverse-core{font-size:84px;color:var(--accent);text-shadow:3px 3px var(--paper),-3px -3px var(--paper)}.board-fx.skip-hop{font-size:54px;color:#d34888;text-shadow:3px 3px var(--paper),-3px -3px var(--paper);z-index:5}.board-fx.skip-cross{font-size:65px;color:#c42b6b;text-shadow:3px 3px var(--paper),-3px -3px var(--paper);z-index:4}.board-fx.suit-bloom{color:var(--accent);z-index:2}.board-fx.suit-petal{color:var(--accent);z-index:3}.board-fx.suit-hearts,.board-fx.suit-diamonds{color:#d34888}.board-fx.suit-bloom svg{filter:drop-shadow(3px 5px 0 #fffdf1cc)}
.board-fx.orbit-track{color:var(--accent);opacity:.7}
/* Semantic colors stay recognizable across every candy theme. Shapes, numbers,
   paths and fixed cream/dark outlines make color a reinforcement, not the key. */
.board-fx.burst,.board-fx.spark,.board-fx.target-ring,.board-fx.orbit-arrow,.board-fx.orbit-track,.board-fx.reverse-core,.board-fx.skip-hop,.board-fx.skip-cross,.board-fx.suit-bloom,.board-fx.suit-petal{color:var(--effect-color,#c84232)}
.board-fx.burst,.board-fx.orbit-arrow,.board-fx.reverse-core,.board-fx.skip-hop,.board-fx.skip-cross{text-shadow:3px 3px 0 #fffdf1,-3px -3px 0 #fffdf1,5px 5px 0 #39284d}
.board-fx.stream-card{border-color:#39284d;background:repeating-linear-gradient(120deg,var(--effect-color,#c84232) 0 6px,#fff5df 6px 12px);color:#39284d;text-shadow:1px 1px #fffdf1,-1px -1px #fffdf1}
.board-fx.target-ring{border-color:var(--effect-color,#c84232);background:#fffdf1ed;text-shadow:1px 1px #fffdf1}
.board-fx.suit-bloom svg,.board-fx.suit-petal svg{filter:drop-shadow(2px 3px 0 #fffdf1);stroke:#fffdf1;stroke-width:1.5;paint-order:stroke fill}
.board-fx.shock-ring{border:4px solid var(--effect-color);border-radius:50%;box-shadow:0 0 0 2px #fffdf1aa}
.board-fx.orbit-trail,.board-fx.hop-trail{border-radius:50%;background:var(--effect-color);box-shadow:0 0 0 2px #fffdf1bb}
.board-fx.attack-bolt{color:var(--effect-color);filter:drop-shadow(-5px 0 0 #fffdf1aa);z-index:6}.board-fx.impact-spark{font-size:20px;color:var(--effect-color);text-shadow:1px 1px #fffdf1,-1px -1px #fffdf1;z-index:6}

/* Compact, identity-led receipts. Only the list scrolls; dismissal stays
   reachable on narrow phones, landscape screens and with enlarged text. */
dialog.effect-history-dialog{width:min(520px,calc(100% - 24px));max-height:min(90dvh,860px);padding:0;overflow:hidden}
dialog.effect-history-dialog[open]{display:flex;flex-direction:column}
.effect-history-heading{padding:16px 16px 10px;flex-shrink:0}
.effect-history-heading h2{font-size:22px;line-height:1.15;letter-spacing:-.4px;margin:0}
.effect-history-heading p{font-size:14px;line-height:1.4;margin:6px 0 0}
.effect-history-list{min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 12px 8px;scroll-padding:8px}
.effect-history-list:focus-visible{outline:3px solid var(--accent);outline-offset:-4px;border-radius:8px}
.effect-history-events,.effect-history-steps{list-style:none;padding:0;margin:0}
.effect-history-events{display:grid;gap:8px}
.effect-history-event{min-width:0;background:var(--paper);border:1px solid #4a315f55;border-radius:12px;padding:9px 10px;overflow-wrap:anywhere}
.effect-history-event article{min-width:0}
.effect-event-title{font-size:18px;font-weight:900;line-height:1.25;margin:0 0 6px}
.effect-history-steps{display:grid;gap:5px}
.effect-history-step{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0}
.effect-person{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;vertical-align:middle}
.effect-person .avatar{display:block;width:34px;height:34px;flex:0 0 34px}
.effect-person-copy{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 6px;min-width:0}
.effect-person-role{font-size:14px;line-height:1.35;font-weight:500;color:var(--ink)}
.effect-player-name{font-size:18px;font-weight:900;line-height:1.25;overflow-wrap:anywhere;min-width:0}
.effect-people{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-width:0;max-width:100%}
.effect-person-detail,.effect-step-text,.effect-step-label{font-size:15px;line-height:1.35}
.effect-history-dialog .effect-person-detail{margin:0;font-size:15px;line-height:1.35;flex-basis:100%}
.effect-history-dialog .effect-step-text{margin:0;font-size:15px;line-height:1.35}
.effect-history-dialog .effect-step-label{margin:0;font-size:14px;font-weight:600;line-height:1.35}
.effect-history-event article>.effect-person{margin-bottom:6px}
.effect-next-turn{border-top:1px solid #4a315f20;padding-top:5px}
.effect-avatar-unknown{display:grid!important;place-items:center;background:#eee6f6;border:2px dashed var(--ink);border-radius:11px;font-size:21px;font-weight:900}
.effect-history-footer{flex-shrink:0;padding:10px 14px 14px;background:var(--bg);border-top:1px solid #4a315f25}
.effect-history-footer button{width:100%;min-height:44px;font-size:16px;padding:9px 14px}
.effect-history-dialog .effect-history-empty{font-size:16px;margin:10px 2px 14px;line-height:1.4}
@media(max-width:350px){.effect-history-heading{padding:14px 12px 10px}.effect-history-heading h2{font-size:21px}.effect-history-list{padding:2px 8px 8px}.effect-history-event{padding:8px}.effect-history-footer{padding:9px 12px 12px}}
@media(max-height:500px){dialog.effect-history-dialog{max-height:calc(100dvh - 20px)}.effect-history-heading{padding-top:10px;padding-bottom:8px}.effect-history-heading p{margin-top:4px}.effect-history-footer{padding-top:8px;padding-bottom:10px}}

/* Signature attacks: crowned spade apparition and twin-lightning comet.
   All animated properties are transforms/opacity; static outlines keep contrast. */
.board-fx.queen-apparition{color:var(--effect-color);z-index:7;filter:drop-shadow(0 3px 0 #39284d99)}
.board-fx.attack-bolt{color:var(--effect-color);filter:drop-shadow(-3px 2px 0 #39284d66);z-index:8}
.board-fx.attack-trail{color:var(--effect-color);z-index:6;filter:none}
.board-fx.attack-impact{color:var(--effect-color);z-index:5}
.board-fx.impact-halo{border:3px dashed var(--effect-color);border-radius:50%;box-shadow:0 0 0 2px #fff5df99;z-index:4}
.board-fx[data-effect-tone="queen"].shock-ring{border-style:double;border-width:6px;box-shadow:0 0 0 2px #ffd85c}
.board-fx[data-effect-tone="queen"].target-ring{box-shadow:0 0 0 3px #ffd85c,0 3px 0 #39284d}

.board-fx.skip-hop svg,.board-fx.skip-cross svg,.board-fx.reverse-core svg,.board-fx.orbit-arrow svg{filter:drop-shadow(0 3px 0 #39284d55)}
.board-fx.wild-sigil{border:3px dashed var(--effect-color);border-radius:28%;box-shadow:inset 0 0 0 6px #fff5df88,0 0 0 2px #fff5df88;z-index:1}
