/* ── MATCH NOTIFICATION (slide-in from top) ── */
#matchNotiOverlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 70px;
}

#matchNotiOverlay.open { pointer-events: auto; }

#matchNotiBox {
  width: min(520px, 95vw);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 22px 22px 16px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
  transform: translateY(-130%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
  visibility: hidden;
}
#matchNotiOverlay { overflow: hidden; }
#matchNotiOverlay.open { overflow: visible; }
#matchNotiOverlay.open #matchNotiBox { transform: translateY(0); visibility: visible; }

#matchNotiGlow {
  position: absolute; inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s;
}

#matchNotiHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}

#matchNotiMatchId { font-family: 'Bebas Neue', sans-serif; font-size: 1.2em; letter-spacing: 4px; color: var(--gold); }
#matchNotiStatusBadge { font-size: 10px; font-weight: 700; letter-spacing: 2px; padding: 4px 10px; border-radius: 20px; background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,230,118,0.2); text-transform: uppercase; }

#matchNotiTeams {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 14px;
  position: relative; z-index: 1;
}

.mnoti-team-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.1em, 3.5vw, 1.7em);
  letter-spacing: 2px;
  flex: 1;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}
.mnoti-team-name.red { color: var(--red); text-align: right; }
.mnoti-team-name.blue { color: var(--blue); text-align: left; }
.mnoti-vs { font-family: 'Bebas Neue', sans-serif; font-size: 1em; color: var(--muted); letter-spacing: 4px; flex-shrink: 0; }

#matchNotiScoreBoard {
  background: var(--surface2);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 12px;
  position: relative; z-index: 1;
  text-align: left;
}

.mnoti-game-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
}
.mnoti-game-row:first-child { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 2px; }
.mnoti-game-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--muted);
  width: 28px;
  flex-shrink: 0;
  text-align: left;
}
.mnoti-score-cell {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3em;
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
  display: inline-block;
  min-width: 1.6ch;
  text-align: center;
}
.mnoti-score-cell.red  { color: var(--red); }
.mnoti-score-cell.blue { color: var(--blue); }
.mnoti-score-sep {
  color: rgba(255,255,255,0.25);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2em;
  flex-shrink: 0;
  line-height: 1;
  padding: 0 8px;
  display: inline-block;
}
.mnoti-game-winner {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}
.mnoti-game-winner.red  { color: var(--red);  background: rgba(255,59,92,0.1);  border: 1px solid rgba(255,59,92,0.2); }
.mnoti-game-winner.blue { color: var(--blue); background: rgba(59,142,255,0.1); border: 1px solid rgba(59,142,255,0.2); }

#matchNotiResultLine {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2em;
  letter-spacing: 3px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 12px;
  text-align: center;
}
#matchNotiTags { margin-bottom: 12px; min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; position: relative; z-index: 1; }

#matchNotiNarrative {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--muted);
  padding: 10px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  text-align: left;
  white-space: pre-line;
  position: relative; z-index: 1;
}
#matchNotiNarrative:empty { display: none; }

#matchNotiGifWrap { margin-bottom: 12px; border-radius: 12px; overflow: hidden; background: #000; line-height: 0; position: relative; z-index: 1; }
#matchNotiGifWrap:empty { display: none; }
#matchNotiGifWrap img { width: 100%; display: block; max-height: 260px; object-fit: contain; background:#000; border-radius:8px; }

#matchNotiOverallScore {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  position: relative; z-index: 1;
}

#matchNotiClose {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 10px 36px;
  border-radius: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 130px;
  position: relative; z-index: 1;
}
#matchNotiClose:hover { background: rgba(255,255,255,0.08); color: var(--gold); border-color: rgba(245,200,66,0.3); }


/* ── Match reaction — self-contained (replaces external GIF) ── */
.noti-reaction {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 16px 12px; min-height: 120px;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 70%);
  border-radius: 12px;
}
.noti-reaction-emoji {
  font-size: clamp(56px, 16vw, 92px); line-height: 1;
  animation: notiReactionPop .5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.noti-reaction-text {
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px;
  font-size: clamp(18px, 5vw, 26px); color: var(--text); text-align: center;
  animation: notiReactionRise .4s ease .15s both;
}
@keyframes notiReactionPop { from { transform: scale(.2) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes notiReactionRise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
