
.scorila-goal-mark[hidden]{display:none!important}
.scorila-goal-mark{pointer-events:none;white-space:nowrap}
.stadium-workspace .match-row .score>.scorila-score-side{position:relative;display:flex;align-items:center;justify-content:center;direction:ltr;overflow:visible}
.scorila-score-numeral{font-variant-numeric:tabular-nums}
.match-row .scorila-goal-mark[data-goal-phase="pending"]{position:absolute;top:50%;left:-19px;z-index:5;display:block;width:13px;height:13px;background:#f6284e;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 3px #f6284eaa,0 0 14px 4px #f6284e99;animation:scorila-board-goal .62s ease-in-out infinite alternate}
@keyframes scorila-board-goal{from{opacity:1;transform:translateY(-50%) scale(1)}to{opacity:.42;transform:translateY(-50%) scale(.70)}}
.stadium-workspace .match-row.scorila-goal-pending{background:#fff6d5!important;box-shadow:inset 4px 0 #e7ac24}
.stadium-workspace .match-row.scorila-goal-pending .score{color:#df3150}
.stadium-workspace .match-row.scorila-goal-confirmed{background:#cbf6e0!important}
html[data-scorila-theme="dark"] .stadium-workspace .match-row.scorila-goal-pending{background:#453623!important}
html[data-scorila-theme="dark"] .stadium-workspace .match-row.scorila-goal-confirmed{background:#164635!important}
.scorila-goal-mark[data-goal-phase="confirmed"]{position:absolute;top:50%;right:calc(100% + 5px);transform:translateY(-50%);z-index:5;display:inline-flex;align-items:center;background:#d82d55;color:#fff;border-radius:4px;padding:1px 5px;font:1000 10px/15px system-ui,sans-serif;box-shadow:0 1px 5px #aa234342}
.scorila-detail-goal-score{display:inline-flex;align-items:baseline;gap:.18em;direction:ltr;overflow:visible}
.scorila-detail-goal-score .scorila-score-side{position:relative;display:inline-flex;overflow:visible}
.scorila-detail-goal-score .scorila-goal-mark{position:absolute;top:50%;right:calc(100% + 6px);left:auto;transform:translateY(-50%);z-index:10}
.scorila-detail-goal-score [data-scorila-score-side="away"] .scorila-goal-mark{right:auto;left:calc(100% + 6px)}
.scorila-detail-goal-score .scorila-goal-mark[data-goal-phase="pending"]{display:block;width:26px;height:26px;border:2px solid #fff;border-radius:50%;background:#e43357;box-shadow:0 0 0 4px #e4335736,0 0 11px #e433577a;animation:scorila-detail-pulse 1.05s ease-in-out infinite alternate}
.scorila-detail-goal-score .scorila-goal-mark[data-goal-phase="confirmed"]{font:900 20px/1 system-ui,sans-serif;padding:8px 12px;border-radius:10px}
@keyframes scorila-detail-pulse{from{opacity:1;transform:translateY(-50%) scale(1)}to{opacity:.35;transform:translateY(-50%) scale(.8)}}
@media(max-width:700px){.match-row .scorila-goal-mark[data-goal-phase="pending"]{width:11px;height:11px;left:-14px;box-shadow:0 0 0 2px #f6284e99,0 0 9px 3px #f6284e77}.scorila-goal-mark[data-goal-phase="confirmed"]{font-size:9px;line-height:13px;padding:1px 3px}.scorila-detail-goal-score .scorila-goal-mark[data-goal-phase="pending"]{width:11px;height:11px;border-width:1.5px;box-shadow:0 0 0 2px #e433572e,0 0 5px #e4335757}.scorila-detail-goal-score .scorila-goal-mark[data-goal-phase="confirmed"]{font-size:9px;padding:3px 4px;border-radius:6px}}
@media(prefers-reduced-motion:reduce){.scorila-goal-mark[data-goal-phase="pending"]{animation:none!important;transform:translateY(-50%)}}


.scorila-goal-stack{--goal-stack-bottom:14px;position:fixed;inset-inline-end:8px;bottom:var(--goal-stack-bottom);z-index:130;display:flex;flex-direction:column;gap:8px;box-sizing:border-box;width:min(446px,calc(100% - 16px));max-height:calc(100vh - var(--goal-stack-bottom) - 78px);max-height:calc(100dvh - var(--goal-stack-bottom) - 78px);overflow:auto;overscroll-behavior:contain;padding:8px}
.scorila-goal-stack:empty{padding:0;pointer-events:none}
.scorila-goal-popup{flex:none;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;background:#bc1640;color:#fff;padding:11px 10px 11px 14px;border:1px solid #ff7b98;border-radius:11px;box-shadow:0 3px 9px #15223749}
.scorila-goal-popup-copy{min-width:0;display:grid;gap:3px}
.scorila-goal-popup strong{font-size:.94rem;font-weight:900;letter-spacing:.035em;line-height:1.2}
.scorila-goal-popup a{color:#fff;text-decoration:none;font-weight:740;font-size:.86rem;line-height:1.4;overflow-wrap:anywhere}
.scorila-goal-popup a[href]:is(:hover,:focus-visible){text-decoration:underline;color:#fff}
.scorila-goal-popup button{flex:none;width:32px;height:32px;color:#fff;background:#ffffff18;border:1px solid #ffffff40;border-radius:6px;font:800 20px/1 system-ui,sans-serif;cursor:pointer}
.scorila-goal-popup button:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:760px){.scorila-goal-stack{--goal-stack-bottom:calc(56px + env(safe-area-inset-bottom,0px));inset-inline-end:3px;width:min(446px,calc(100% - 6px));padding:6px}.scorila-goal-stack:empty{padding:0}}
